]> granicus.if.org Git - php/commitdiff
- Fixed bug #47037 (No error when using fopen with emty string)
authorFelipe Pena <felipe@php.net>
Thu, 8 Jan 2009 18:43:12 +0000 (18:43 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 8 Jan 2009 18:43:12 +0000 (18:43 +0000)
Patch by Cristian Rodriguez R.

main/streams/streams.c

index adb2b942845113827e936483ab756cf980ae66c3..845bef4782c26c68e00dd1a543c71510a587c64b 100755 (executable)
@@ -2387,6 +2387,7 @@ PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int optio
        }
 
        if (!path || !*path) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename cannot be empty");
                return NULL;
        }