PHP 4.0 Bug #3632: Abort trap

From: Date: Sat, 26 Feb 2000 03:18:07 +0000
Subject: PHP 4.0 Bug #3632: Abort trap
Groups: php.dev 
Request: Send a blank email to php-dev+get-16031@lists.php.net to get a copy of this message
From: hroi@asdf.dk Operating system: FreeBSD 3.4-STABLE PHP version: 4.0 Beta 4 PHP Bug Type: IMAP related Bug description: Abort trap I was experimenting with php's imap support and it seemed to work ok, but then things started crashing. httpd exits with the following message: [Sat Feb 26 04:03:05 2000] [notice] child pid 87650 exit signal Abort trap (6) Short script: <html> <head> <title>fdl</title> </head> <body> <?php $link = imap_open("{imap.asdf.dk:143}INBOX","cetec","cetec"); $nmsgs = imap_num_msg($link); print $nmsgs; for($i=0; $i <= $nmsgs; $i++) { $fullheader = imap_fetchheader($link, $i); $headers = explode("\r\n", $fullheader); print "DEBUG: count(\$headers) == " . count($headers) . "<br>\n"; for($j = 0; $j <= count($headers); $j++) { if (ereg("^Subject: (.*)\$", $headers[$j+1], $eregs)) { print $eregs[1] . "<hr>\n"; } } } ?> </body> </html> No php.ini. Relevant modules: imap (v 4.7 client lib) Apache 1.3.11. I'm willing to be instructed in how to debug this. Just mail me.

« previous php.dev (#16031) next »