Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[VarDumper] Move locale sniffing to dump() time#23574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromnicolas-grekas:dump-locale
Jul 19, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJul 18, 2017
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#23572
LicenseMIT
Doc PR-

@nicolas-grekasnicolas-grekas added this to the3.2 milestoneJul 18, 2017
*/
publicfunctiondump(Data$data,$output =null)
{
$this->decimalPoint =strval(0.5);
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

sorry fabbot, but I really want strval here, to prevent any optim by opcache :)

$this->decimalPoint =(string)0.5;
$this->decimalPoint =$this->decimalPoint[1];
$this->decimalPoint =localeconv();
$this->decimalPoint =$this->decimalPoint['decimal_point'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Why keep the logic here as well? Can't we remove it?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

For BC, the property is protected.

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commiteed8a51 intosymfony:2.7Jul 19, 2017
fabpot added a commit that referenced this pull requestJul 19, 2017
…rekas)This PR was merged into the 2.7 branch.Discussion----------[VarDumper] Move locale sniffing to dump() time| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#23572| License       | MIT| Doc PR        | -Commits-------eed8a51 [VarDumper] Move locale sniffing to dump() time
@nicolas-grekasnicolas-grekas deleted the dump-locale branchJuly 19, 2017 07:30
This was referencedAug 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

2 participants

@nicolas-grekas@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp