ID: 48713
Updated by: pajoye@php.net
Reported By: michael dot l at zend dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows
PHP Version: 5.2.10
Assigned To: pajoye
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-06-29 17:56:26] michael dot l at zend dot com
Small correction to my report:
The code IS working on Linux OS and DOES NOT on Windows OS
------------------------------------------------------------------------
[2009-06-29 08:36:04] jani@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