]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
authorIlia Alshanetsky <iliaa@php.net>
Mon, 11 May 2009 12:35:00 +0000 (12:35 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 11 May 2009 12:35:00 +0000 (12:35 +0000)
  paths)

NEWS
ext/xmlwriter/php_xmlwriter.c

diff --git a/NEWS b/NEWS
index f6ff028a0a49d1447089ba4911ddcc0dd5ef03e9..d9fbe8eab4bfeea44fcecb057b05e192c18fd7dc 100644 (file)
--- 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)
index 07d68c8e7733ba2c9ac3d835cfb565ac1b29165d..73285f0e2f8c98f8e9a69cbdb9ded64c9d20dc20 100644 (file)
@@ -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;
        }