From: tomseven at gmx dot de
Operating system: Windows Vista
PHP version: 5.3.0
PHP Bug Type: Class/Object related
Bug description: Uncatchable fatal error
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 bug report at http://bugs.php.net/?id=49420&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49420&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49420&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49420&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49420&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49420&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49420&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49420&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49420&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49420&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49420&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49420&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49420&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49420&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49420&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49420&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49420&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49420&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49420&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49420&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49420&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49420&r=mysqlcfg