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.
 
 

25 lines
356 B

--TEST--
Bug #27278 (*printf() functions treat arguments as if passed by reference)
--SKIPIF--
<?php
echo 'skip AOT requires all executable code be in functions';
?>
--FILE--
<?php
function foo ($a)
{
$a=sprintf("%02d",$a);
var_dump($a);
}
$x="02";
var_dump($x);
foo($x);
var_dump($x);
?>
--EXPECT--
string(2) "02"
string(2) "02"
string(2) "02"