From: info at xboot dot de
Operating system: Windows 2003
PHP version: 5.2.1
PHP Bug Type: Sockets related
Bug description: Retrieving e-mails by streams (pop3) doesn't work.
Description:
------------
Retrieving e-mails from a Lotus Notes server by streams (pop3) doesn't
work. If i use the php imap-function instead it works. So it must be a
problem concerning streams. I also tried Zend_Mail_Storage_Pop3 from Zend
framework 0.9.1 and it doesn't work too.
Windows 2003
LotusNotes 6.5.5FP1 (another machine in the same network)
Php 5.2.1 and php 5.2.2RC1
Reproduce code:
---------------
<?php
$host = '16.36.4.70';
$port = '110';
$user = 'username';
$pass = 'password';
$socket = fsockopen($host, $port);
if (!$socket) {
die('cannot connect to host');
}
$welcome = fgets($socket);
if (!is_string($welcome)) {
die('connection failed');
}
echo "<h1>$welcome</h1>";
$request = fputs($socket, "USER $user\n");
echo $request . '<br />';
// seems here is the problem
$result = fgets($socket);
echo $result;
fclose($socket);
?>
Expected result:
----------------
+OK Lotus Notes POP3 server version X2.0 ready.
14
+OK username, your papers please
Actual result:
--------------
+OK Lotus Notes POP3 server version X2.0 ready.
14
Fatal error: Maximum execution time of 60 seconds exceeded in
D:\fsockopen_pop3.php on line 23
--
Edit bug report at http://bugs.php.net/?id=41149&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41149&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41149&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41149&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41149&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41149&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41149&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41149&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41149&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41149&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41149&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41149&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41149&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41149&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41149&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41149&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41149&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41149&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41149&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41149&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41149&r=mysqlcfg