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

require_once('Mail.php');

Details

Submitted2005-11-15 16:17 UTC
Fromsmkeesle at syr dot edu
StatusBogus
PackageMail
PHP Version4.3.9
OSRHEL_3
Roadmaps(Not assigned)

Comments

[2005-11-15 16:17 UTC] smkeesle at syr dot edu

Description:
------------
Every time I upgrade php/PEAR I end up with this error:

Fatal error: Class mail_mail: Cannot inherit from undefined class mail in /usr/share/pear/Mail/mail.php on line 30

I end up having to add a line to mail.php:

require_once ('Mail.php');

[2005-11-15 16:18 UTC] chagenbu at php dot net

Wrong package.

[2005-11-16 18:12 UTC] chagenbu at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

Indeed, my bad. I misread it as Mail_mime.php. Tired eyes, what can I say.

As to the reporter, you didn't include code, but the Mail subclasses aren't supposed to be instantiated directly; you should use Mail::factory().