From: [EMAIL PROTECTED]
Operating system: win2K
PHP version: 4.2.3
PHP Bug Type: IMAP related
Bug description: Apache restarts with no output
Trying to make a mailling list script on a php encountered a strange PHP
behaviour.
config: Win2K, Apache 1.3.20 (Win32), PHP 4.2.3 (just downloaded from
php.net)
Script:
<?
//diff set-up steps skipped
$mbox = imap_open ("{".$server.":".$port."/pop3}INBOX", "$uname",
"$passw");
//following lines work on the results
?>
first I worked with my local pop3 server (WinRoute built-in). everything
went fine, but then suddenly I got no changes in the output after I was
changing my script.
I changed the server to another one (mail.ru) and continued working. 30
minutes of happy working until that server went "dead" too.
I changed the pop3 server the third time. It worked, but finally began
bugging too!
I started searching the point where the bug comes from.
got the following from apache error.log file (debug level of logging):
--------
abnormal program termination
[Sat Dec 07 04:34:06 2002] [info] master_main: Child processed exited (due
to MaxRequestsPerChild?). Restarting the child process.
[Sat Dec 07 04:34:06 2002] [info] Parent: Created child process 2100
[Sat Dec 07 04:34:06 2002] [info] Parent: Duplicating socket 428 and
sending it to child process 2100
[Sat Dec 07 04:34:07 2002] [info] BytesRead = 372 WSAProtocolInfo =
2006620
--------
Phperror.log contains nothing about the problem.
Commenting the "$mbox = imap_open()" makes script working as usual.
starting the script with "php -f script.php >1.html" make PHP print
"abnormal program termination" and quit.
1.html file remains empty.
--
Edit bug report at http://bugs.php.net/?id=20871&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20871&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20871&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20871&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20871&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20871&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20871&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20871&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20871&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20871&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20871&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20871&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20871&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20871&r=isapi