Skip to content

Commit 444aba4

Browse files
author
Ilia Alshanetsky
committed
MFB: Fixed bug #46887 (Invalid calls to php_error_docref())
1 parent abda353 commit 444aba4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ PHP NEWS
66
- Fixed security issue in imagerotate(), background colour isn't validated
77
correctly with a non truecolour image. (Fixes CVE-2008-5498) (Scott)
88

9-
- Fixed bug #46889: Memory leak in strtotime(). (Derick)
9+
- Fixed bug #46889 (Memory leak in strtotime()). (Derick)
10+
- Fixed bug #46887 (Invalid calls to php_error_docref()).
11+
(oeriksson at mandriva dot com, Ilia)
1012
- Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value
1113
inside a binary or image column type). (Ilia)
1214
- Fixed bug #46782 (fastcgi.c parse error). (Matt)

ext/xmlwriter/php_xmlwriter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static zend_object_value xmlwriter_object_new(zend_class_entry *class_type TSRML
168168

169169
#define XMLW_NAME_CHK(__err) \
170170
if (xmlValidateName((xmlChar *) name, 0) != 0) { \
171-
php_error_docref(NULL TSRMLS_CC, E_WARNING, __err); \
171+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", __err); \
172172
RETURN_FALSE; \
173173
} \
174174

0 commit comments

Comments
 (0)