From: Ilia Alshanetsky Date: Mon, 11 May 2009 12:21:26 +0000 (+0000) Subject: Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid X-Git-Tag: php-5.3.0RC3~285 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60d4c0308a2989507ca522cfe3f622fb39b9c619;p=php Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid paths) --- diff --git a/NEWS b/NEWS index 6a2dc2a962..8e233e35a3 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,8 @@ PHP NEWS - Added ability to throw exceptions from SQLite3 instead of warnings. (Scott) - Added startup notices for deprecated ini settings. (Kalle) +- Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid + paths). (Ilia) - Fixed bug #48185 (warning: value computed is not used in pdo_sqlite_stmt_get_col line 271). (Matteo) - Fixed bug #48087 (call_user_method() invalid free of arguments). (Felipe) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index e99d9aa16c..773ce91440 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -1755,6 +1755,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; }