Forum Moderators: coopster

Message Too Old, No Replies

requesting non-existing static function of a class

script crashes instead of returning an error

         

DoppyNL

9:53 am on Jul 20, 2005 (gmt 0)

10+ Year Member



I've got a class `Site`.
At the beginning of the script 1 instance of this class is created.
After that, only static functions are used, so all functions are called like this:
<?php
Site::setting('id');
?>

The problem occurs when I make a typo, and I do this for instance:

<?php
Site::seting('id');
?>

there is no function `seting` in the class `Site`; so an errormessage like "Fatal error: Call to undefined method " is to be expected.
Other typo's cause the same problem, even for other classes.

Problem is, I don't know what happens; Firefox reports that `The document returns no data` (translated).
On rare occasions I do get the error message.

the apache errorlog reports this:
"[Wed Jul 20 11:47:12 2005] [notice] Parent: child process exited with status 3221225477 -- Restarting."

OS: WinXP
apache: Apache/2.0.54 (Win32)
PHP 5.0.4

Anyone got any idea on what I can do about this?
It's quite difficult to find a typo like that when there is no errormessage. And the same happens when I make other typo's.

tnx allready for reading this :)

chrisjoha

1:22 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



Try buffing up your error reporting level in PHP with
error_reporting(E_ALL);

DoppyNL

1:39 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



error reporting is allready set to that level, so that can't help unfortunatly.

Also, on the rare occasion the page does turn up, the error is displayed. But most of the time there is simply nothing returned.