php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5696 crash if undefined class-function is called
Submitted: 2000-07-20 14:38 UTC Modified: 2000-07-20 18:42 UTC
From: marc at links2linux dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Linux 2.2.13
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: marc at links2linux dot de
New email:
PHP Version: OS:

 

 [2000-07-20 14:38 UTC] marc at links2linux dot de
# define a class
class Foo {
  var $bar;

  function Foo(blah = 0) {
    $this->bar = 0;
  }
}

# make object
foo = new Foo;

# now  call undefined method:
foo->blub();

# no error-message, no more output, script ist halted (crashed?)
# behaves like calling exit;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-20 14:41 UTC] stas at cvs dot php dot net
First, your script is invalid. PHP requires $ before variable names. Second, check your error-reporting settings and enable error-reporting to see what's happened. If you have a crash case, please supply valid reproducing script and backtrace, if possible.
 [2000-07-20 18:29 UTC] marc at links2linux dot de
OK, the example was invalid (It was written out of mind, without testing)

But: my error_reporting(); is set to 64

The Script stops without saying anything
 [2000-07-20 18:41 UTC] marc at links2linux dot de
sorry, gorgot to change status
 [2000-07-20 18:42 UTC] hholzgra at cvs dot php dot net
and that's it!
the value for error_reporting is a bitmask
and 64 is only the bit for compile_error set
all other types of errors wont show any message
please use symbolic values, especially E_ALL
when setting error_reporting
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 07:00:01 2026 UTC