php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49420 Uncatchable fatal error
Submitted: 2009-08-30 20:32 UTC Modified: 2009-09-07 01:00 UTC
From: tomseven at gmx dot de Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.0 OS: Windows Vista
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-08-30 20:32 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-30 20:39 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-08-30 21:22 UTC] tomseven at gmx dot de
Updated to the latest PHP release and source (5.3.1), but it still crashes.

Problemsignatur:
  Problemereignisname:	APPCRASH
  Anwendungsname:	httpd.exe
  Anwendungsversion:	2.2.13.0
  Anwendungszeitstempel:	4a7b422b
  Fehlermodulname:	php5ts.dll
  Fehlermodulversion:	5.3.1.0
  Fehlermodulzeitstempel:	4a9ae59c
  Ausnahmecode:	c0000005
  Ausnahmeoffset:	0008c767
  Betriebsystemversion:	6.0.6001.2.1.0.768.3
  Gebietsschema-ID:	1031
  Zusatzinformation 1:	f1e8
  Zusatzinformation 2:	d4eb7cf28a4f910486e91a11f70d294f
  Zusatzinformation 3:	8d19
  Zusatzinformation 4:	c73248402f4105cfb47e294ad6946345
 [2009-09-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-09-07 12:06 UTC] tomseven at gmx dot de
After reworking my code, I got it working. I cannot detect any reasonable changes other than I use "zend_try" now instead of "zend_first_try".

Btw, I am using output buffering and zend_try together. Making sure, the buffer will close in any cases is nessarry for correct output via webservers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 16:01:29 2024 UTC