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

index 492de62e5846ed7ad773c698febeba3e0ca317c6..c3a555ba82f30ca866215414431f9de9267269d9 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;
        }