|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-08-04 14:11 UTC] bjori@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
Description: ------------ http_get is supposed to return false on connection timeout, but instead it returns an empty string. Reproduce code: --------------- if (false === ($http = http_get('http://0.0.0.0/', array('timeout' => 15, 'connecttimeout' => 15)))) { echo 'FALSE returned'; } else { var_dump($http); } Expected result: ---------------- FALSE returned Actual result: -------------- string(0) ""