php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22344 mail() times out, then sends the mail successfully
Submitted: 2003-02-20 19:16 UTC Modified: 2003-03-09 18:57 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: mellis at ellisandgrant dot com Assigned:
Status: No Feedback Package: Mail related
PHP Version: 4.3.1 OS: Windows 2000 Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mellis at ellisandgrant dot com
New email:
PHP Version: OS:

 

 [2003-02-20 19:16 UTC] mellis at ellisandgrant dot com
Humble apologies if this turns out to be a configuration error, but I can't find any reference using the bug search page or a general search with Google.

Script to reproduce problem:
<?php mail('mellis@frogwing.com', 'Times out', 'But does get sent!'); ?>

Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\apache group\apache\htdocs\mailtest.php on line 1

Environment:
php 4.3.1 Win32 binaries running as apache module
SMTP smtp.ellisandgrant.com
SERVER_SIGNATURE  <ADDRESS>Apache/1.3.27 Server at localhost Port 80</ADDRESS>  
SERVER_SOFTWARE  Apache/1.3.27 (Win32) PHP/4.3.1  


Notes:
1. The SMTP box is a linux box on my LAN. Very unbusy with a fast cable modem connection to the outside world, ie connecting and DNS cannot possibly be taking more than 1 or 2 seconds.

2. All other php functions and behaviors seem fine.

3. Watching the clock and looking at the timestamp on the email, it seems as though it is being sent just AFTER the script times out.

4. mail() worked fine when I ran php as cgi.

Thanks,
Mike Ellis

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-23 04:40 UTC] sniper@php.net
Does adding set_time_limit(60); help?

 [2003-03-09 18:57 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 17:01:31 2019 UTC