#40244 [Opn]: PHP Strict errors even with E_STRICT Disabled
| From: | lists at cyberlot dot net | Date: | Fri, 26 Jan 2007 01:27:43 +0000 |
| Subject: | #40244 [Opn]: PHP Strict errors even with E_STRICT Disabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108078@lists.php.net to get a copy of this message | ||
ID: 40244
User updated by: lists at cyberlot dot net
Reported By: lists at cyberlot dot net
Status: Open
Bug Type: Compile Warning
Operating System: Centos 4.4
PHP Version: 5.2.0
New Comment:
also if you remove the error_reporting($er); the error goes away, even
though that line is after all the other php code.
Previous Comments:
------------------------------------------------------------------------
[2007-01-26 01:26:01] lists at cyberlot dot net
Happens in the newest RC4 release as well
------------------------------------------------------------------------
[2007-01-26 01:11:24] lists at cyberlot dot net
Description:
------------
Description:
------------
This is during the user of Net_SMTP and Mail but the bugs come from
the
user of is_a in PEAR And non-static method calls to PEAR::isError()
error_reporting(0) not working as expected within pear
Test script:
---------------
<?php
$er = error_reporting(0);
include('Mail.php');
$mail_object = Mail::factory('smtp');
$mail_object->send('test@test.com','Subject','Body');
error_reporting($er);
?>
Reproduce code:
---------------
<?php
$er = error_reporting(0);
include('Mail.php');
$mail_object = Mail::factory('smtp');
$mail_object->send('test@test.com','Subject','Body');
error_reporting($er);
?>
Expected result:
----------------
nothing error reporting is turned off before code, turned back on
after
code
Actual result:
--------------
PHP Strict Standards: Non-static method PEAR::isError() should not be
called statically, assuming $this from incompatible context in
/usr/local/lib/php/Net/SMTP.php on line 331
PHP Strict Standards: Non-static method PEAR::isError() should not be
called statically, assuming $this from incompatible context in
/usr/local/lib/php/Net/SMTP.php on line 169
PHP Strict Standards: is_a(): Deprecated. Please use the instanceof
operator in /usr/local/lib/php/PEAR.php on line 281
PHP Strict Standards: is_a(): Deprecated. Please use the instanceof
operator in /usr/local/lib/php/PEAR.php on line 281
PHP Strict Standards: Non-static method PEAR::isError() should not be
called statically, assuming $this from incompatible context in
/usr/local/lib/php/Net/SMTP.php on line 334
PHP Strict Standards: is_a(): Deprecated. Please use the instanceof
operator in /usr/local/lib/php/PEAR.php on line 281
PHP Strict Standards: Non-static method PEAR::isError() should not be
called statically, assuming $this from incompatible context in
/usr/local/lib/php/Net/SMTP.php on line 337
PHP Strict Standards: is_a(): Deprecated. Please use the instanceof
operator in /usr/local/lib/php/PEAR.php on line 281
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40244&edit=1