php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41149 Retrieving e-mails by streams (pop3) doesn't work.
Submitted: 2007-04-20 12:36 UTC Modified: 2007-04-20 12:47 UTC
From: info at xboot dot de Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 5.2.1 OS: Windows 2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at xboot dot de
New email:
PHP Version: OS:

 

 [2007-04-20 12:36 UTC] info at xboot dot de
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-20 12:47 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC