xref: /php-src/Zend/tests/bug79836_2.phpt (revision 727e26f9)
1--TEST--
2Bug #79836 (Segfault in concat_function)
3--FILE--
4<?php
5$c = str_repeat("abcd", 10);
6
7ob_start(function () use (&$c) {
8	$c = 0;
9}, 1);
10
11class X {
12	function __toString() {
13		echo "a";
14		return "abc";
15	}
16}
17
18$xxx = new X;
19
20$x = $c . $xxx;
21ob_end_clean();
22echo $x . "\n";
23?>
24--EXPECT--
25abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabc
26