#48713 [Opn->Fbk]: IMAP extension crashes PHP (internal reference #183257)

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48713
 Updated by:       [email protected]
 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] [email protected]

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/[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 this bug report at http://bugs.php.net/?id=48713&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.