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

[email protected] ("bigmyx at gmail dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48713
 User updated by:  bigmyx at gmail dot com
 Reported By:      bigmyx at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Windows
 PHP Version:      5.2.10
 Assigned To:      pajoye
 New Comment:

Changed the email


Previous Comments:
------------------------------------------------------------------------

[2009-06-29 08:29:28] [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] bigmyx at gmail 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.