Skip to content
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

Fix of incorrect parsing multibyte strings #66

Merged
merged 4 commits into from
Oct 24, 2016

Conversation

dkop
Copy link
Contributor

@dkop dkop commented Nov 23, 2015

If function overloading for mb_string (http://php.net/manual/en/mbstring.overload.php) is turned on then reading of annotations with unicode strings works incorrect.
Just don't use array access for string next time :)

If function overloading for mb_string (http://php.net/manual/en/mbstring.overload.php) is turned on then reading of annotations with unicode strings works incorrect.
Just don't use array access for string next time :)
@Ocramius
Copy link
Member

@dkop this needs a test case

@Ocramius Ocramius added the bug label Nov 23, 2015
@dkop
Copy link
Contributor Author

dkop commented Nov 23, 2015

@Ocramius ok, test is added

*/
public function testMultiByteAnnotation()
{
$overloadStringFunctions = 2;
Copy link
Member

Choose a reason for hiding this comment

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

Is there any constant to be referenced here? Or did you just point at the INI setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, i didn't found constant for this value. You can check also this page http://php.net/manual/en/mbstring.overload.php . May be this link need to be added to test description?

Copy link
Member

Choose a reason for hiding this comment

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

I see you already did it :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there is two different links, but you can go from page in code to second page :-)

@dkop
Copy link
Contributor Author

dkop commented Nov 23, 2015

@stof ok, you are right, i changed it back to strict comparison

@stof
Copy link
Member

stof commented Mar 21, 2016

@Ocramius what about merging this (even though I would prefer mbstring.func_overload to die, but it will not happen soon)

@Ocramius Ocramius added this to the v1.3.0 milestone Oct 24, 2016
@Ocramius Ocramius self-assigned this Oct 24, 2016
@Ocramius
Copy link
Member

@dkop sorry for the late review/merge, LGTM! 👍

@Ocramius Ocramius merged commit fd51a7c into doctrine:master Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants