ID:               49420
 Updated by:       [email protected]
 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

Reply via email to