ID:               20871
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: win2K
 PHP Version:      4.2.3
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2002-12-06 20:01:42] [EMAIL PROTECTED]

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 [EMAIL PROTECTED]:/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] [EMAIL PROTECTED]

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

Reply via email to