Re: E_STRICT errors

From: Date: Thu, 01 Feb 2007 08:28:08 +0000
Subject: Re: E_STRICT errors
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26455@lists.php.net to get a copy of this message
Sorry mate, I have to run right now... but just quickly: these errors seem to be displayed in a different way with the backtrace and all... I'm not sure if there's another debug setting or what... but the error that's causing it is *definately* a php5 strict warning. A quick google of the unhandled error bit and I found a php file that seems to print exactly what your errors are: http://www.webdatabasebook.com/2nd-edition/winestore/source.php?source=/2nd-edition/winestore/includes/customHandler.inc Are you using a cms? If so then you may need to ask them for help PS: reply CC to the email list so others can help Frank Dogge wrote:
Hello David, Thanks for your quick reply! I dit the following adjustment in the index.php: * $errLevel = error_reporting();
    error_reporting($errLevel & ~E_STRICT);*
This DOES NOT WORK for stopping the E   _STRICT    standard error reporting, mostly conserning the DB.php and the PEAR.php files.
So my approach must be wrong? I also use a custom handler for debugging with reporting to the screen (when debugged to a file) and still get the "unhandled errors" with errorcode 2048 (=E_STRICT yes?). You can have a look at http://www.siteways.be If nessesary you can have a look at the phpinfo.php as well. I hope you can help me to get rid of these errors. Maybe an example script/website with this subject? Thanks in advance.
Kind regards,    Frank
  
----- Original Message ----- From: "David Sanders" <dsanders@baselinesolutions.com.au> To: "Frank Dogge" <f.dogge@pandora.be> Cc: <pear-general@lists.php.net> Sent: Wednesday, January 31, 2007 12:45 AM Subject: Re: [PEAR] pear DB errors Turn off your strict standards error reporting.
Hello, I use PHP 5.2 with the latest stable DB package 1.7.7For database abstraction I use the Pear - DB packageHereby ik get the following
errors:
Non-static method PEAR::isError() should not be called statically
    Non-static method DB::isError() should not be called statically    I
also get a deprecated warning for the is_a() function in DB.phpSince 
I am
looking for a solution for a long time with no result I hope you can
help
me out.Thanks in advance, Frank Dogge - Belgium
-- David Sanders
-- David Sanders Software Engineer Baseline Solutions Pty Ltd Suite 201 832 High St East Kew VIC 3123 Australia Phone: (03) 9249 9687 Fax: (03) 9249 9600 http://baselinesolutions.com.au ======================================================================== This e-mail contains privileged and confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in reliance on it. Please notify Baseline Solutions Pty Ltd via e-mail (security@baselinesols.com) if you are not the intended addressee of this e-mail transmission. Any views or opinions presented in this message are solely those of the author. ========================================================================

« previous php.pear.general (#26455) next »