|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10765 timeout doesn't work
Submitted: 2001-05-09 16:43 UTC Modified: 2001-12-13 06:24 UTC
From: wuxinan at 263 dot net Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.5 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: wuxinan at 263 dot net
New email:
PHP Version: OS:


 [2001-05-09 16:43 UTC] wuxinan at 263 dot net
timeout parameter in fsockopen() doesn't work
socket_set_timeout() doesn't work.

I am using PHP 4.0.5 (binary release, CGI version) in Windows 98.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-10 04:44 UTC]
Add some short script which demonstrates how they don't work.


 [2001-05-10 13:39 UTC] wuxinan at 263 dot net
Actually I am making a Webster dictionary Web Interface:

$fp = fsockopen($webster_server, $webster_port, $err, $errno, 5);
socket_set_timeout($fp, 5);

Here 5 seconds timeout in fsockopen() doesn't work. If it cannot connet, it will simply wait until the maximun script execution time (default 30 seconds in php.ini) reached.

socket_set_timeout() seems to be not implemented in this version.

(PHP 4.0.5, Windows CGI binary release)
 [2001-11-21 07:39 UTC]
Can you try latest RC if the problem still exists

 [2001-12-13 06:24 UTC]
No feedback. Closing.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 19:05:43 2022 UTC