Ticket #300 (new defect)

Opened 7 months ago

Last modified 7 months ago

Get sometimes error "Class 'X' not found" when using eAccerlator

Reported by: wouter Assigned to: somebody
Priority: blocker Milestone:
Component: eAccelerator Version:
Keywords: htmlMimeMail Cc:

Description

I found a nasty bug in eAccelerator. Sometimes, out of a sudden PHP generates a fatal error stating it cannot find a class that really should be loaded (see attachment).

I could track this error down to the point where we try to instantiate the htmlMimeMail class (http://www.phpguru.org/static/mime.mail.html).

Line 61 in module/view/mail.php says: $this->mail =& new htmlMimeMail5();

The weird thing is that all code works and runs just fine until out of a sudden PHP crashes, always at this point. To fix this, I just have to update "touch" the mail.php file and everything runs just fine again. It seems to me like some kind of caching problem.

My question is ofcourse: How to fix this?

Thanks and keep up the good work!

Wouter.

Attachments

glue_error.png (16.2 kB) - added by wouter on 03/13/08 16:55:30.

Change History

03/13/08 16:55:30 changed by wouter

  • attachment glue_error.png added.

(in reply to: ↑ description ) 03/13/08 17:45:54 changed by wouter

  • summary changed from Class not found to Get sometimes error "Class 'X' not found" when using eAccerlator.

Replying to wouter:

I found a nasty bug in eAccelerator. Sometimes, out of a sudden PHP generates a fatal error stating it cannot find a class that really should be loaded (see attachment). I could track this error down to the point where we try to instantiate the htmlMimeMail class (http://www.phpguru.org/static/mime.mail.html). Line 61 in module/view/mail.php says: $this->mail =& new htmlMimeMail5(); The weird thing is that all code works and runs just fine until out of a sudden PHP crashes, always at this point. To fix this, I just have to update "touch" the mail.php file and everything runs just fine again. It seems to me like some kind of caching problem. My question is ofcourse: How to fix this? Thanks and keep up the good work! Wouter.