mirror of
https://github.com/php/php-src.git
synced 2025-01-09 04:24:06 +08:00
20 lines
325 B
PHP
20 lines
325 B
PHP
--TEST--
|
|
Bug #47322 (sscanf %d does't work)
|
|
--FILE--
|
|
<?php
|
|
|
|
sscanf(":59:58","%s:%d:%f", $a, $b, $c);
|
|
echo "[$a][$b][$c]\n";
|
|
|
|
sscanf("15:01:58.2","%d:%f:%f", $a, $b, $c);
|
|
echo "[$a][$b][$c]\n";
|
|
|
|
sscanf("15.1111::foo","%f:%d:%s", $a, $b, $c);
|
|
echo "[$a][$b][$c]\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
[:59:58][][]
|
|
[15][1][58.2]
|
|
[15.1111][1][58.2]
|