From: Felipe Pena Date: Thu, 8 Jan 2009 19:21:25 +0000 (+0000) Subject: MFH: X-Git-Tag: php-5.2.9RC1~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e28ad0cd2836961f0ec2468c940b1256a0ca858e;p=php MFH: - Fixed bug #47037 (No error when using fopen with emty string) Patch by Cristian Rodriguez R. --- diff --git a/NEWS b/NEWS index f24cfaf7e1..0b5a2ca0f0 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ PHP NEWS (Fixes CVE-2008-5498) (Scott) - Fixed a segfault when malformed string is passed to json_decode(). (Scott) +- Fixed bug #47037 (No error when using fopen with emty string). + (Cristian Rodriguez R.) - Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record). (Felipe) - Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject). diff --git a/main/streams/streams.c b/main/streams/streams.c index 8f2bd227fc..4d1f7d5569 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1763,6 +1763,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; }