PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail » Bug #9950

PHP Strict errors even with E_STRICT Disabled

Details

Submitted2007-01-25 21:37 UTC
Fromlists at cyberlot dot net
StatusBogus
PackageMail
PHP Version5.2.0
OSCentos
Roadmaps(Not assigned)

Comments

[2007-01-25 21:37 UTC] lists at cyberlot dot net

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

Really not to sure as to the best way to classify it so put it as a pear bug since the errors are mostly from 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);

?>

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

[2007-01-26 15:04 UTC] lists at cyberlot dot net

They told me to report it to you

http://bugs.php.net/bug.php?id=40244

So the 2 "teams" need to get together and figure this out one way or the other

[2007-01-27 00:53 UTC] chagenbu at php dot net

There's no way this is Mail's fault.