php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30083 call to undefine class method exit php without yell
Submitted: 2004-09-14 11:16 UTC Modified: 2004-09-23 14:26 UTC
From: momo@php.net Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.0.1 OS: winxp
Private report: No CVE-ID: None
 [2004-09-14 11:16 UTC] momo@php.net
Description:
------------
the following code works nice when runing php-cli and php-cgi from the shell but with apache 1.3.x(cgi) the script exit without yell.



Reproduce code:
---------------
<?
error_reporting(E_ALL);
class d {}
$d=new d();
echo "before";
$d->nf();
echo "after";
?>

Expected result:
----------------
before
Fatal error: Call to undefined method d::nf() in c:\php\test.php on line 6

Actual result:
--------------
before

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-14 19:57 UTC] helly@php.net
What happens when you set error_mode to 0?
 [2004-09-19 09:37 UTC] momo@php.net
the output is just "before" in both cgi via httpd and cgi via the shell.
 [2004-09-21 14:29 UTC] momo@php.net
btw, calling to undefine function e.g stelen(), produce the same bug.
 [2004-09-22 23:09 UTC] helly@php.net
Have you checked you error_logs and other relevant ini settings?
 [2004-09-23 14:26 UTC] momo@php.net
yes the log_errors was On (i played with the wrong .ini sorry).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC