#49420 [Opn->Fbk]: Uncatchable fatal error
| From: | jani@php.net | Date: | Sun, 30 Aug 2009 20:39:49 +0000 |
| Subject: | #49420 [Opn->Fbk]: Uncatchable fatal error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141727@lists.php.net to get a copy of this message | ||
ID: 49420
Updated by: jani@php.net
Reported By: tomseven at gmx dot de
-Status: Open
+Status: Feedback
-Bug Type: Class/Object related
+Bug Type: Scripting Engine problem
Operating System: Windows Vista
PHP Version: 5.3.0
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-08-30 20:32:44] tomseven at gmx dot de
Description:
------------
Uncatchable fatal error for function call on non-object
Reproduce code:
---------------
...
LPSTR eval_code = "?> $NOVAR->ABC();";
...
zend_first_try {
if ( zend_eval_string(eval_code, NULL, eval_name TSRMLS_CC) ==
SUCCESS ) {
...
}
}
zend_catch
{
} zend_end_try();
Expected result:
----------------
zend_eval_string should throw a fatal error and jump to zend_catch.
Fatal error "Call to a member function ABC() on a non-object" is
expected to be catchable.
It is working in 5.2.1/Apache2 but no longer in 5.3/Apache2.2
Actual result:
--------------
zend_catch never reached
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49420&edit=1