diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-12-18 20:08:00 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-12-18 20:08:00 +0000 |
commit | 444aba4d5f258c4e6b072b10445e606bf82d5f25 (patch) | |
tree | fdcfdfd974d079490658c0c494f53b6838a1fe05 | |
parent | abda35380f73435e3f37c80300d6f0ca5219ddfe (diff) | |
download | php-git-444aba4d5f258c4e6b072b10445e606bf82d5f25.tar.gz |
MFB: Fixed bug #46887 (Invalid calls to php_error_docref())
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -6,7 +6,9 @@ PHP NEWS - Fixed security issue in imagerotate(), background colour isn't validated correctly with a non truecolour image. (Fixes CVE-2008-5498) (Scott) -- Fixed bug #46889: Memory leak in strtotime(). (Derick) +- Fixed bug #46889 (Memory leak in strtotime()). (Derick) +- Fixed bug #46887 (Invalid calls to php_error_docref()). + (oeriksson at mandriva dot com, Ilia) - Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value inside a binary or image column type). (Ilia) - Fixed bug #46782 (fastcgi.c parse error). (Matt) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index fbffcaece7..65e3d54e70 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -168,7 +168,7 @@ static zend_object_value xmlwriter_object_new(zend_class_entry *class_type TSRML #define XMLW_NAME_CHK(__err) \ if (xmlValidateName((xmlChar *) name, 0) != 0) { \ - php_error_docref(NULL TSRMLS_CC, E_WARNING, __err); \ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", __err); \ RETURN_FALSE; \ } \ |