1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/standard/tests/math/bug62112.phpt
T
Nikita Popov ea256a218b Add %0 format to run-tests.php
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.
2021-05-29 11:33:13 +02:00

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"