From: mellis at ellisandgrant dot com
Operating system: Windows 2000 Pro
PHP version: 4.3.1
PHP Bug Type: Mail related
Bug description: mail() times out, then sends the mail successfully
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('[EMAIL PROTECTED]', '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
--
Edit bug report at http://bugs.php.net/?id=22344&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22344&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22344&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22344&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22344&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22344&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22344&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22344&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22344&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22344&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22344&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22344&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22344&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22344&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22344&r=gnused