ID: 48713
User updated by: michael dot l at zend dot com
-Reported By: bigmyx at gmail dot com
+Reported By: michael dot l at zend dot com
Status: Open
Bug Type: Reproducible crash
Operating System: Windows
PHP Version: 5.2.10
Assigned To: pajoye
New Comment:
new emai
Previous Comments:
------------------------------------------------------------------------
[2009-06-29 08:34:11] bigmyx at gmail dot com
Changed email
------------------------------------------------------------------------
[2009-06-29 08:33:03] bigmyx at gmail dot com
Changed the email
------------------------------------------------------------------------
[2009-06-29 08:29:28] pajoye@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-06-29 08:27:36] michael dot l at zend dot com
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/user=USER_NAME@gmail.com}INBOX';
$messageStream = imap_open ($connectionString, 'USER_NAME@gmail.com',
'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 this bug report at http://bugs.php.net/?id=48713&edit=1