radman
radman

Reputation: 18595

PHP error logging not comprehensive?

I'm working with PHP and have got the error logging turned on and turned up with:

error_reporting = E_ALL | E_STRICT

log_errors = On
error_log = /path/to/file
display_errors = Off

Now this log files catches most PHP errors but occasionally I will make a change and have the page fail to display with no logging to the file.

A specific example of this is if I do:

 interface InterfaceClass
 {
     public function someFunction();
 }

 class InterfaceInheriter implements InterfaceClass
 { 
     final public function someFunction()
     {

     }   
 }

  class FirstDerived extends InterfaceInheriter
  {   
      public function someFunction()
      {

      }
 }

Now this is all well and good, and i'm sure I have made some error, but where can I get the feedback from the interpreter for this?

ANSWER: Since i'm using Wordpress it turns out that it was somehow filtering out some log messages. I fixed it in the end by setting the appropriate logging configuration for Wordpress.

Thanks for the help!

Upvotes: 0

Views: 93

Answers (1)

nathan
nathan

Reputation: 5464

try placing error_reporting(E_ALL | E_STRICT); in the file..

Upvotes: 1

Related Questions