From: wkonkel at gmail dot com
Operating system: n/a
PHP version: 4.3.10
PHP Bug Type: Feature/Change Request
Bug description: file_get_contents/fopen don't respect default_socket_timeout
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)
--
Edit bug report at http://bugs.php.net/?id=31614&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31614&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31614&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31614&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31614&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31614&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31614&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31614&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31614&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31614&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31614&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31614&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31614&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31614&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31614&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31614&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31614&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31614&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31614&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31614&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31614&r=mysqlcfg