|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-01 13:28 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
Description: ------------ when compiled with "--with-curlwrappers", php 5.1.4 fails to fail an fopen request when you provide it with a uri containing an invalid host name, when recompiled without "--with-curlwrappers", it fails as expected... this results in php invalidly returing a valid fopen resource even if the remote host is unreachable (e.g. because of a network problem) Reproduce code: --------------- <? $file = fopen('http://non.existent.host', 'rb'); print_r($file); echo "\n"; ?> Expected result: ---------------- it should display a warning (if enabled) and return "false" in $file Actual result: -------------- with "--with-curlwrappers", it returns "Resource id #5" in $file and doesn't warn of an error whatsoever