ID: 48713 User updated by: michael dot l at zend dot com Reported By: michael dot l at zend dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Windows PHP Version: 5.2.10 Assigned To: pajoye New Comment:
Small correction to my report: The code IS working on Linux OS and DOES NOT on Windows OS Previous Comments: ------------------------------------------------------------------------ [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
