View Issue Details

IDProjectCategoryView StatusLast Update
0000789XdebugUncategorizedpublic2012-03-07 19:35
ReporterFraak Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
Summary0000789: Try catch in Try catch will always throw exception
Description

When you have a Try catch block within a try catch block the exception always gets thrown. Even if you have called xdebug_disable();

Steps To Reproduce

xdebug_disable();
try
{
try
{
throw new Exception("Some exception");
}
catch(Exception $e)
{
echo "first try";
}
}
catch (Exception $e)
{
echo "second try";
}

echo " end";

Additional Information

Expected output would be "first try end" Actual output is the exception message of "some exception".

TagsNo tags attached.
Operating SystemWindows + Zend Server CE
PHP Version5.3.9

Activities

Fraak

2012-03-06 13:09

reporter   ~0001947

Last edited: 2012-03-06 13:21

I tried with a clean PHP 5.3.9 + XDebug 2.1.3 from CLI and it works as expected then. Therefore I figure this is a issue in combination with Zend CE. Zend Server CE runs php as CGI then this error occours.

Also noticed that when you disable Zend Optimizer+ the error does not occour.

derick

2012-03-07 19:35

administrator   ~0001949

Xdebug is not compatible with Zend Optimizer+, because it changes how PHP executes things. Marking this one as resolved.