php-src/ext/standard/tests/strings/bug22207.phpt
Ilia Alshanetsky 7fffe4338a Fixed bug #22207 (e notation in *printf would be missing a 0 when there is
no exponent).
Added a test case for the bug.
2003-02-13 17:25:31 +00:00

12 lines
213 B
PHP

--TEST--
Bug #22207 (missing 0 when using the e notation in *printf functions)
--FILE--
<?php
printf("%10.5e\n", 1.1);
var_dump(sprintf("%10.5e\n", 1.1));
?>
--EXPECT--
1.1000e+0
string(17) " 1.1000e+0
"