|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-20 12:47 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 21:00:01 2025 UTC |
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