com php-src: Added test case to complement commit 29397f8: Zend/tests/concat_002.phpt

From: Date: Sat, 06 Sep 2014 10:57:03 +0000
Subject: com php-src: Added test case to complement commit 29397f8: Zend/tests/concat_002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81444@lists.php.net to get a copy of this message
Commit: 47ac4612e9d30b9b870b96c9ad45fa68a605cbad Author: Tjerk Meesters <datibbaw@php.net> Sat, 6 Sep 2014 18:56:22 +0800 Parents: 9ab8605f8b5b7623c57084b4e76cf1d7911df8bc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=47ac4612e9d30b9b870b96c9ad45fa68a605cbad Log: Added test case to complement commit 29397f8 Changed paths: A Zend/tests/concat_002.phpt Diff: diff --git a/Zend/tests/concat_002.phpt b/Zend/tests/concat_002.phpt new file mode 100644 index 0000000..3cb182e --- /dev/null +++ b/Zend/tests/concat_002.phpt @@ -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 +

« previous php.cvs (#81444) next »