Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Bug #1139 Always Fatal error: Cannot redeclare class mail in ......
Submitted: 2004-04-05 21:21 UTC
From: FractalizeR at yandex dot ru Assigned: jon
Status: Closed Package: Mail
PHP Version: 4.3.3 OS: Windows 2000
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 + 30 = ?

 
 [2004-04-05 21:21 UTC] FractalizeR at yandex dot ru
Description: ------------ When I try to create mailer instance, I always get error message Fatal error: Cannot redeclare class mail in <...>\PEAR\PEAR\Mail.php on line 33 This is because files Mail.php (base PEAR Mail class) and class mail.php used as engine to PHP mail() function have the same name under Windows. The temporary solution is to remove or comment require_once 'Mail.php'; line from mail.php (mail() engine script) Reproduce code: --------------- $MailingEngine = &Mail::factory('mail'); Expected result: ---------------- Fatal error: Cannot redeclare class mail in <...>\PEAR\PEAR\Mail.php on line 33

Comments

 [2004-04-05 21:39 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-04-05 23:37 UTC] chagenbu at php dot net
I agree with Jon.
 [2004-04-06 05:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-10-11 04:35 UTC] hunny_bunny_s at yahoo dot com (hunny_bunny_s)
HELP GET TO SEND MAIL PLEASE