From: me at mattbeale dot plus dot com Operating system: Windows 2000 SP3 PHP version: 4CVS-2003-03-28 (stable) PHP Bug Type: Mail related Bug description: mail function hang-up
System Spec: Pentium 2 350Mhz, 256MB RAM, Windows 2000 Professional SP3, Apache 1.3.27 Win32 PHP/4.3.2.2 RC (20030328 Win32 stable from snaps.php.net - Build Date: Mar 28 2003 18:11:34) using Apache ISAPI module with GD2 support enabled in php.ini. The Problem: The mail() function in PHP hangs when talking to my ISP mail server, causing the Apache child process to hang indefinitely and ultimately requiring it to be closed forcefully by stopping and restarting the system service. There are never any errors reported by PHP, not even those of the maximum execution timeout variety, so this would indicate to me that something is very wrong somewhere. I can reproduce this 100% and it happens regardless of how the mail function is written, even a simple <?php mail('[EMAIL PROTECTED]', 'Hello', 'Hello There'); ?> will cause it to hang. To try and rectify this problem myself, I have formatted and reinstall Windows 2000, completely uninstalled and reinstalled both Apache and PHP several times, tried various recent versions of PHP and tried using only a very basic httpd.conf/php.ini, with only required settings for the SMTP support under Windows and it still does it. Using a packet-sniffer, I am able to monitor PHP as it is talking to my ISP's mail server. Unless I'm reading things incorrectly, PHP never gets past the initial HELO <machine name> command, even though my ISPs mail server does respond with 250 OK, indicating that it was successful. PHP blatantly ignores this and instead chooses to sit there like a lemon, as if nothing ever happened. -- Edit bug report at http://bugs.php.net/?id=22947&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22947&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22947&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22947&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22947&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22947&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22947&r=support Expected behavior: http://bugs.php.net/fix.php?id=22947&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22947&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22947&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22947&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22947&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22947&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22947&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22947&r=gnused