felipe Thu Jan 8 19:21:26 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/main/streams streams.c
Log:
MFH:
- Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1384&r2=1.2027.2.547.2.1385&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1384 php-src/NEWS:1.2027.2.547.2.1385
--- php-src/NEWS:1.2027.2.547.2.1384 Thu Jan 8 17:28:08 2009
+++ php-src/NEWS Thu Jan 8 19:21:25 2009
@@ -14,6 +14,8 @@
(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).
http://cvs.php.net/viewvc.cgi/php-src/main/streams/streams.c?r1=1.82.2.6.2.32&r2=1.82.2.6.2.33&diff_format=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.82.2.6.2.32
php-src/main/streams/streams.c:1.82.2.6.2.33
--- php-src/main/streams/streams.c:1.82.2.6.2.32 Wed Dec 31 11:17:48 2008
+++ php-src/main/streams/streams.c Thu Jan 8 19:21:25 2009
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.82.2.6.2.32 2008/12/31 11:17:48 sebastian Exp $ */
+/* $Id: streams.c,v 1.82.2.6.2.33 2009/01/08 19:21:25 felipe Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1763,6 +1763,7 @@
}
if (!path || !*path) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Filename cannot be
empty");
return NULL;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php