xref: /php-src/Zend/tests/bug79836.phpt (revision 727e26f9)
1--TEST--
2Bug #79836 (Segfault in concat_function)
3--INI--
4opcache.optimization_level = 0x7FFEBFFF & ~0x400
5--FILE--
6<?php
7$counter = 0;
8ob_start(function ($buffer) use (&$c, &$counter) {
9	$c = 0;
10	++$counter;
11}, 1);
12$c .= [];
13$c .= [];
14ob_end_clean();
15echo $counter . "\n";
16?>
17--EXPECT--
183
19