From: Felipe Pena Date: Thu, 8 Jan 2009 18:43:12 +0000 (+0000) Subject: - Fixed bug #47037 (No error when using fopen with emty string) X-Git-Tag: php-5.4.0alpha1~191^2~4590 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57470a9bfd420dc0311615cbe35ebf2f0fde16fd;p=php - Fixed bug #47037 (No error when using fopen with emty string) Patch by Cristian Rodriguez R. --- diff --git a/main/streams/streams.c b/main/streams/streams.c index adb2b94284..845bef4782 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -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; }