xref: /PHP-7.2/Zend/tests/concat_002.phpt (revision f1d7e3ca)
1--TEST--
2Stress test $x .= $x
3--FILE--
4<?php
5
6/*
7 * Test case for a concat_function() change that broke a test outside of Zend
8 *
9 * @see https://github.com/php/php-src/commit/29397f8fd2b4bc8d95e18448ca2d27a62241a407
10**/
11
12$result = 'f';
13
14for ($i = 0; $i < 25; ++$i) {
15    $result .= $result;
16}
17
18var_dump(strlen($result));
19echo "Done\n";
20?>
21--EXPECT--
22int(33554432)
23Done
24