php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31614 file_get_contents/fopen don't respect default_socket_timeout
Submitted: 2005-01-19 17:45 UTC Modified: 2005-08-21 01:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: wkonkel at gmail dot com Assigned:
Status: No Feedback Package: Network related
PHP Version: 4.3.10 OS: n/a
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: wkonkel at gmail dot com
New email:
PHP Version: OS:

 

 [2005-01-19 17:45 UTC] wkonkel at gmail dot com
Description:
------------
The functions file_get_contents and fopen, when opening an http or https location, don't use the default_socket_timeout specified in the php.ini.

Reproduce code:
---------------
ini_set("default_socket_timeout", 2);
echo file_get_contents("https://1.2.3.4");


Expected result:
----------------
(2 seconds later... nothing)

Actual result:
--------------
(60 seconds later... nothing)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-13 21:10 UTC] nlopess@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

It is working here.
 [2005-08-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-05-02 17:11 UTC] cv dot mail at mail dot ru
Still doesn't work in 4.4.9
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC