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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: momo@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 00:01:35 2025 UTC