TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
374 B

--TEST--
Bug #47322 (sscanf %d doesn't work)
--SKIPIF--
<?php
echo 'skip AOT limitation';
?>
--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]