#40244 [NEW]: PHP Strict errors even with E_STRICT Disabled

From: Date: Fri, 26 Jan 2007 01:11:24 +0000
Subject: #40244 [NEW]: PHP Strict errors even with E_STRICT Disabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108076@lists.php.net to get a copy of this message
From: lists at cyberlot dot net Operating system: Centos 4.4 PHP version: 5.2.0 PHP Bug Type: Compile Warning Bug description: PHP Strict errors even with E_STRICT Disabled 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 bug report at http://bugs.php.net/?id=40244&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40244&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40244&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40244&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40244&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40244&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40244&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40244&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40244&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40244&r=support Expected behavior: http://bugs.php.net/fix.php?id=40244&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40244&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40244&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40244&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40244&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40244&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40244&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40244&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40244&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40244&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40244&r=mysqlcfg

« previous php.bugs (#108076) next »