mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
ea256a218b
This format matches against null bytes, and prevents the test expectation from being interpreted as binary data. bless_tests.php will automatically replace \0 with %0 as well.
9 lines
148 B
PHP
9 lines
148 B
PHP
--TEST--
|
|
Bug #62112: number_format() is not binary safe
|
|
--FILE--
|
|
<?php
|
|
var_dump(number_format(2.5, 2, "\0", "'"));
|
|
?>
|
|
--EXPECTF--
|
|
string(4) "2%050"
|