diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-05-11 12:35:00 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-05-11 12:35:00 +0000 |
commit | 3222df99d99253b86c139a1185a81427d44366da (patch) | |
tree | 2b6ee63ab1fa97853d92fddaa33a86f102471415 | |
parent | 3e738e7a4668343f9a2be9bf25cb742a08ad02e0 (diff) | |
download | php-git-3222df99d99253b86c139a1185a81427d44366da.tar.gz |
MFB: Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
paths)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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; } |