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
370 B

--TEST--
Stress test $x .= $x
--FILE--
<?php
/*
* Test case for a concat_function() change that broke a test outside of Zend
*
* @see https://github.com/php/php-src/commit/29397f8fd2b4bc8d95e18448ca2d27a62241a407
**/
$result = 'f';
for ($i = 0; $i < 25; ++$i) {
$result .= $result;
}
var_dump(strlen($result));
echo "Done\n";
?>
--EXPECT--
int(33554432)
Done