|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-26 01:11 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Your wrong, Try the following <?php $er = error_reporting(0); include('Mail.php'); $mail_object = Mail::factory('smtp'); $mail_object->send('test@test.com','Subject','Body'); ?> If these errors are during compile time, and compile time happens before all this then why does the above code not report the errors?