Skip to content

[Form] Improved multi-byte handling of NumberToLocalizedStringTransformer #7902

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2013

Conversation

webmozart
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #7609
License MIT
Doc PR -

@@ -130,19 +133,19 @@ public function reverseTransform($value)
throw new TransformationFailedException('I don\'t have a clear idea what infinity looks like');
}

$length = mb_strlen($value, 'UTF-8');
Copy link
Contributor

Choose a reason for hiding this comment

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

you should provide a fallback for PHP without mbstring extension as it's not required for Symfony2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

fabpot added a commit that referenced this pull request May 3, 2013
This PR was merged into the 2.2 branch.

Discussion
----------

[Form] Improved multi-byte handling of NumberToLocalizedStringTransformer

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7609
| License       | MIT
| Doc PR        | -

Commits
-------

dcced01 [Form] Improved multi-byte handling of NumberToLocalizedStringTransformer
@fabpot fabpot merged commit dcced01 into symfony:2.2 May 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants