mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
55b5b89ef7
# just made these EXPECTREGEX expressions, if there's a prefered way to comply with both 32/64 bit let me know.
16 lines
454 B
PHP
16 lines
454 B
PHP
--TEST--
|
|
Bug #23894 (sprintf() decimal specifiers problem)
|
|
--FILE--
|
|
<?php
|
|
$a = -12.3456;
|
|
$test = sprintf("%04d", $a);
|
|
var_dump($test, bin2hex($test));
|
|
$test = sprintf("% 13u", $a);
|
|
var_dump($test, bin2hex($test));
|
|
?>
|
|
--EXPECTREGEX--
|
|
string\(4\) \"-012\"
|
|
string\(8\) \"2d303132\"
|
|
(string\(13\) \" 4294967284\"|string\(20\) \"18446744073709551604\")
|
|
(string\(26\) \"20202034323934393637323834\"|string\(40\) \"3138343436373434303733373039353531363034\")
|