]> granicus.if.org Git - php/commitdiff
MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying...
authorAntony Dovgal <tony2001@php.net>
Mon, 18 Dec 2006 14:56:20 +0000 (14:56 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 18 Dec 2006 14:56:20 +0000 (14:56 +0000)
NEWS
ext/standard/php_fopen_wrapper.c

diff --git a/NEWS b/NEWS
index 9d8f849c609e419f3bbb0a0536596ee6e9156da7..0621dab911251be9127efd923555c47e111a3b52 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PHP                                                                        NEWS
   . cookies
   . canary protection (debug build only)
   . random generation of cookies and canaries
+- Fixed bug #39850 (SplFileObject throws contradictory/wrong error messages 
+  when trying to open "php://wrong"). (Tony)
 - Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type
   are set to 0). (Dmitry)
 
index 200ec5f2db057c23b888f7f201a1a1d6d9df6868..e533f5535e9a21131ef91d7e3001964db1595e90 100644 (file)
@@ -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;
        }