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:
19
ext/standard/tests/strings/bug47322.phpt
Normal file
19
ext/standard/tests/strings/bug47322.phpt
Normal 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]
|
||||
Reference in New Issue
Block a user