From 8489fe67f1f1ba374ba04d68d422e6323de04025 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 18 Dec 2006 14:55:23 +0000 Subject: [PATCH] fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong") --- ext/standard/php_fopen_wrapper.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1