|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57359 class.phpmailer.php not working with APC extension
Submitted: 2006-11-08 15:20 UTC Modified: 2010-11-03 19:03 UTC
From: krudtaa at yahoo dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.2.0 RC4 OS: Windows XP Pro
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-11-08 15:20 UTC] krudtaa at yahoo dot com
Using PHPMailer verision 1.73


Using XP PRO with:
PHP 5.2.0
Apache 2.0.59

Getting this error in the browser:
Fatal error: Maximum execution time of 180 seconds
exceeded in pathToPhpmailer\class.phpmailer.php on line

It does NOT stop on same line every time in
class.phpmailer.php though

If I raises the execution time to let say 360 seconds I
started to get this error:
Fatal error: Out of memory (allocated 712245248) (tried
to allocate 178257909 bytes) in
pathToPhpmailer\class.phpmailer.php on line 814

If I commented this extension line in php.ini then it
started to work again:


Do not know if the fault is caused by APC or phpmailer.

Apache used a wicked amount of memory while script was running. CPU usage up to 50% (dual core cpu) and memory usage between 170 000KB and 800 000KB.

I tested with one file attached. Size of attachement was 
14KB and used SMTP in phpmailer.

Reproduce code:
Se above

If you need any more details let me know.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-30 04:48 UTC] marcus at synchromedia dot co dot uk
FWIW I'm generally not seeing any problems with PHMailer under 
APC. You may however be suffering the recent problem in 3.0.13 
involving very high memory fragmentation which seems to affect 
any script, particularly on first run, and causes symptoms 
much like you describe. There are apparently some fixes in 
CVS, but I've not tried them yet.
 [2009-06-18 15:03 UTC] pfrsaliyapeiris at aol dot com
 [2009-09-24 22:38 UTC]
Can you please try an updated version of PHP and APC to see if this issue have been solved?

Either by SVN or the newest APC version available from:
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 01:03:36 2022 UTC