View Issue Details

IDProjectCategoryView StatusLast Update
0000789XdebugUncategorizedpublic2012-03-07 19:35
ReporterFraak Assigned Toderick  
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.

Issue History

Date Modified Username Field Change
2012-03-06 12:24 Fraak New Issue
2012-03-06 13:09 Fraak Note Added: 0001947
2012-03-06 13:21 Fraak Note Edited: 0001947
2012-03-07 19:35 derick Note Added: 0001949
2012-03-07 19:35 derick Status new => resolved
2012-03-07 19:35 derick Resolution open => no change required
2012-03-07 19:35 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized