concat_002.phpt 370 B

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