php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.

Patches

Pull Requests

History

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

--Jani

 [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] mfischer@php.net
Can you try latest RC if the problem still exists

http://phpuk.org/~james/php-4.1.0RC3-win32.zip

Feedback.
 [2001-12-13 06:24 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 08 08:01:28 2025 UTC