From 31169e2c1abe0096100bdb9f37e158c7ad9dba7b Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 8 Jan 2009 18:46:00 +0000 Subject: [PATCH] MFH: - Fixed bug #47037 (No error when using fopen with emty string) Patch by Cristian Rodriguez R. --- main/streams/streams.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/streams/streams.c b/main/streams/streams.c index 3cbb43021d..ff856ba9c1 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -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; } -- 2.40.0