summaryrefslogtreecommitdiff
path: root/ext/xmlwriter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-12-18 20:02:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-12-18 20:02:20 +0000
commitc9f030f57667ad7c7768bab15014b0af20b47510 (patch)
treecb22baa517ab4ba2e73865d6c0fd6f240bc353e7 /ext/xmlwriter
parent0cd7fdd99ff0e992fc8403aac4c83a2e2a5506c1 (diff)
downloadphp-git-c9f030f57667ad7c7768bab15014b0af20b47510.tar.gz
Fixed bug #46887 (Invalid calls to php_error_docref())
# Patch by oeriksson at mandriva dot com and crrodriguez at opensuse dot org
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r--ext/xmlwriter/php_xmlwriter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c
index 3c990b0db1..a0c503359f 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; \
} \