mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Added test case to complement commit 29397f8
This commit is contained in:
parent
9ab8605f8b
commit
47ac4612e9
24
Zend/tests/concat_002.phpt
Normal file
24
Zend/tests/concat_002.phpt
Normal file
@ -0,0 +1,24 @@
|
||||
--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
|
||||
|
Loading…
Reference in New Issue
Block a user