From: bigmyx at gmail dot com
Operating system: Windows
PHP version: 5.2.10
PHP Bug Type: Reproducible crash
Bug description: IMAP extension crashes PHP (internal reference #183257)
Description:
------------
The following code is crashing the PHP engine (php-cli,php-cgi) when
working on Linux OS. Also tried via Microsoft FastCGI wrapper and IIS
(IIS-6 and IIS-7).
On Linux OS its working ok.
In order to reproduce, create a new Gmail account, login and enable IMAP
service, then, use the code below.
Reproduce code:
---------------
<?php
$connectionString
='{imap.gmail.com/imap/ssl/novalidate-cert/[email protected]}inbox';
$messageStream = imap_open ($connectionString, '[email protected]',
'PASSWORD');
$boxInfo = imap_check($messageStream);
for ($messageNumber = 1; $messageNumber <= $boxInfo->Nmsgs;
$messageNumber++)
{
$headerInfo = imap_header($messageStream, $messageNumber);
var_export($headerInfo);
}
Expected result:
----------------
You should get the list of your emails.
Actual result:
--------------
Crash of PHP/FastCGI.
--
Edit bug report at http://bugs.php.net/?id=48713&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48713&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48713&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48713&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48713&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48713&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48713&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48713&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48713&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48713&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48713&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48713&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48713&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48713&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48713&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48713&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48713&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48713&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48713&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48713&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48713&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48713&r=mysqlcfg