Home » Mail » Mail » Bug #5970
require_once('Mail.php');
Details
| Submitted | 2005-11-15 16:17 UTC |
|---|---|
| From | smkeesle at syr dot edu |
| Status | Bogus |
| Package | |
| PHP Version | 4.3.9 |
| OS | RHEL_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().