1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00

- New test

This commit is contained in:
Felipe Pena
2009-02-06 10:18:40 +00:00
parent 9054c069b3
commit b72183b595

View File

@@ -0,0 +1,19 @@
--TEST--
Bug #47322 (sscanf %d does't work)
--FILE--
<?php
sscanf("15:59:58.2","%d:%d:%f", $a, $b, $c);
echo "[$a][$b][$c]\n";
sscanf("15:59:58.2","%d:%d:%f", $a, $b, $c);
echo "[$a][$b][$c]\n";
sscanf("15:59:foo","%d:%d:%s", $a, $b, $c);
echo "[$a][$b][$c]\n";
?>
--EXPECT--
[15][59][58.2]
[15][59][58.2]
[15][59][foo]