Skip to content

Fixed Bug #60977 number_format behavior changed when passing \0 for 4th parameter. #82

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

Closed
wants to merge 1 commit into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented May 12, 2012

I think the parameter 4 and 6 for function _php_math_number_format_ex should be deleted because the type of parameter 3 and 5 is already string. User not need calculate the string length before call the function.

I have checked all source code to found where are the function _php_math_number_format_ex is called. Seems only number_format() and _php_math_number_format() call that function.

I also add some tests for function number_format in file tests/math/number_format_basic.phpt

@nikic
Copy link
Member

nikic commented May 12, 2012

I didn't look particularly carefully into this, but do I understand right that this change removes binary-safety from number_format? If so, why would you want to do that?

@ghost
Copy link
Author

ghost commented May 13, 2012

The change not precise enough. thank you. I close it.

@ghost ghost closed this May 13, 2012
php-pulls pushed a commit that referenced this pull request Apr 9, 2013
php-pulls pushed a commit that referenced this pull request Apr 9, 2013
* PHP-5.5:
  Fixed issue #82 (allow comments in blacklist file, lines started with ";")
This pull request was closed.
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.

2 participants