php-src/ext/standard/tests/strings/bug22187.phpt
Dmitry Stogov 227295a4f1 Unicode stuff is changed according to decision maden on PDM.
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.
2006-01-17 12:18:53 +00:00

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"