#20871 [Fbk->Opn]: Apache restarts with no output
| From: | ctocopok at fond-darina dot ru | Date: | Sat, 07 Dec 2002 02:38:07 +0000 |
| Subject: | #20871 [Fbk->Opn]: Apache restarts with no output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26932@lists.php.net to get a copy of this message | ||
ID: 20871
User updated by: ctocopok@fond-darina.ru
Reported By: ctocopok@fond-darina.ru
-Status: Feedback
+Status: Open
Bug Type: IMAP related
Operating System: win2K
PHP Version: 4.2.3
New Comment:
Latest snapshot did not help. Actually, i fount the better place to
"breakpoint" - I did comment out the line containing
"$headers=imap_search($mbox, "FROM @");"
*perhaps* that is the point where a crash(?) occures.
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 20:25:45] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-12-06 20:10:23] ctocopok@fond-darina.ru
test script could be reached at http://decmon.fond-darina.ru/mail.php
and http://decmon.fond-darina.ru/mail.php?phpinfo=1
the latter one will start producing phpinfo() report (I added "if
(isset($phpinfo))phpinfo();" line to the beginning of the script
------------------------------------------------------------------------
[2002-12-06 20:05:46] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-12-06 20:01:42] ctocopok@fond-darina.ru
Same thing happens on a machine that is described by phpinfo() like
following:
------------------------------------------------------
System FreeBSD v6.valuehost.ru 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon
Jan 14 05:22:29 MSK 2002 egor@v6.valuehost.ru:/usr/src/sys/compile/V6
i386
Build Date Sep 19 2002 15:39:18
Configure Command './configure' '--prefix=/usr/local'
'--with-config-file-path=/usr/local/etc' '--enable-memory-limit'
'--with-gd=/usr/local' '--with-freetype-dir=/usr/local'
'--enable-gd-native-ttf' '--with-zlib' '--with-pdflib=/usr/local'
'--with-zlib-dir=/usr' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local'
'--with-mysql=/usr/local/mysql' '--with-dbase'
'--with-ldap=/usr/local'
'--with-openssl=/usr/local' '--with-xml' '--enable-xslt'
'--with-dom=/usr/local' '--with-xslt-sablot'
'--with-expat-dir=/usr/local' '--with-t1lib=/usr/local'
'--with-curl=/usr/local' '--with-gettext=/usr/local'
'--with-iconv=/usr/local' '--with-mcrypt=/usr/local'
'--enable-sysvsem'
'--enable-sysvshm' '--enable-trans-sid' '--enable-sockets'
'--with-imap=/usr/local' '--enable-ftp' '--enable-exif'
'--enable-mbstring' '--enable-mbregexp' '--enable-bcmath'
Server API Apache
------------------------------------------------------------------------
[2002-12-06 19:42:14] ctocopok@fond-darina.ru
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 this bug report at http://bugs.php.net/?id=20871&edit=1