From: Antony Dovgal Date: Mon, 18 Dec 2006 14:55:23 +0000 (+0000) Subject: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to... X-Git-Tag: RELEASE_1_0_0RC1~667 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8489fe67f1f1ba374ba04d68d422e6323de04025;p=php fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong") --- diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 492de62e58..c3a555ba82 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -276,6 +276,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch return stream; } else { /* invalid php://thingy */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid php:// URL specified"); return NULL; }