mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
227295a4f1
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
14 lines
242 B
PHP
14 lines
242 B
PHP
--TEST--
|
|
Bug #22187 (possible crash in number_format() function)
|
|
--FILE--
|
|
<?php
|
|
var_dump(number_format(0.0001, 1));
|
|
var_dump(number_format(0.0001, 0));
|
|
?>
|
|
--EXPECT--
|
|
string(3) "0.0"
|
|
string(1) "0"
|
|
--UEXPECT--
|
|
unicode(3) "0.0"
|
|
unicode(1) "0"
|