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

main/streams/streams.c

index 3cbb43021dfb6c5a5ba573a539346c6c38cef661..ff856ba9c18bb4fe84060a33c895dad62955f898 100755 (executable)
@@ -1783,6 +1783,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;
        }