Annotation of embedaddon/php/ext/standard/tests/strings/bug47322.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #47322 (sscanf %d does't work)
3: --FILE--
4: <?php
5:
6: sscanf(":59:58","%s:%d:%f", $a, $b, $c);
7: echo "[$a][$b][$c]\n";
8:
9: sscanf("15:01:58.2","%d:%f:%f", $a, $b, $c);
10: echo "[$a][$b][$c]\n";
11:
12: sscanf("15.1111::foo","%f:%d:%s", $a, $b, $c);
13: echo "[$a][$b][$c]\n";
14:
15: ?>
16: --EXPECT--
17: [:59:58][][]
18: [15][1][58.2]
19: [15.1111][1][58.2]
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>