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 #5190

echo command in smtp.php 1.22

Details

Submitted2005-08-23 20:40 UTC
Fromauzzie at gmail dot com
Assignedjon
StatusClosed
PackageMail
PHP VersionIrrelevant
OSgentoo linux
Roadmaps(Not assigned)

Comments

[2005-08-23 20:40 UTC] auzzie at gmail dot com

Description:
------------
On line 270 of smtp.php version 1.22 there is an echo command, which seems out of place in a library. In my programs it causes:

Cannot modify header information - headers already sent by (output started at /usr/lib/php/Mail/smtp.php:270)

smtp.php relevent section:

/* If persistent connections are disabled, destroy our SMTP object. */
if ($this->persist === false) {
echo "Disconnecting\n";
$this->_smtp->disconnect();
$this->_smtp = null;
}

http://cvs.php.net/co.php/pear/Mail/Mail/smtp.php?r=1.22#270