From 3222df99d99253b86c139a1185a81427d44366da Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 11 May 2009 12:35:00 +0000 Subject: [PATCH] MFB: Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid paths) --- NEWS | 2 ++ ext/xmlwriter/php_xmlwriter.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index f6ff028a0a..d9fbe8eab4 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,8 @@ PHP NEWS - Fixed bug #48221 (memory leak when passing invalid xslt parameter). (Felipe) - Fixed bug #48206 (Iterating over an invalid data structure with RecursiveIteratorIterator leads to a segfault). (Scott) +- Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid + paths). (Ilia) - Fixed bug #48156 (Added support for lcov v1.7). (Ilia) - Fixed bug #48131 (Don't try to bind ipv4 addresses to ipv6 ips via bindto). (Ilia) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 07d68c8e77..73285f0e2f 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -1451,6 +1451,7 @@ static PHP_FUNCTION(xmlwriter_open_uri) valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN TSRMLS_CC); if (!valid_file) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to resolve file path"); RETURN_FALSE; } -- 2.50.1