Annotation of embedaddon/php/ext/standard/tests/strings/bug23894.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #23894 (sprintf() decimal specifiers problem)
! 3: --FILE--
! 4: <?php
! 5: $a = -12.3456;
! 6: $test = sprintf("%04d", $a);
! 7: var_dump($test, bin2hex($test));
! 8: $test = sprintf("% 13u", $a);
! 9: var_dump($test, bin2hex($test));
! 10: ?>
! 11: --EXPECTREGEX--
! 12: string\(4\) \"-012\"
! 13: string\(8\) \"2d303132\"
! 14: (string\(13\) \" 4294967284\"|string\(20\) \"18446744073709551604\")
! 15: (string\(26\) \"20202034323934393637323834\"|string\(40\) \"3138343436373434303733373039353531363034\")
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>