diff options
author | Rob Richards <rrichards@php.net> | 2005-12-09 20:52:15 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2005-12-09 20:52:15 +0000 |
commit | cc969671322a6da419a4dae8370fd2442c2fb21c (patch) | |
tree | f74fab53ca0d488a5eda559d1d53a5f70f65fc23 /ext/xmlwriter/php_xmlwriter.c | |
parent | ca423244978a9ead686f7c67a225e86c5fbbb0ee (diff) | |
download | php-git-cc969671322a6da419a4dae8370fd2442c2fb21c.tar.gz |
MFH: allow NULL prefix to create default namespace
fix tests
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.c')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index d773be3b4e..ca6d54984f 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -658,7 +658,7 @@ PHP_FUNCTION(xmlwriter_write_attribute_ns) if (this) { if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssss", - &name, &name_len, &content, &content_len) == FAILURE) { + &prefix, &prefix_len, &name, &name_len, &uri, &uri_len, &content, &content_len) == FAILURE) { return; } XMLWRITER_FROM_OBJECT(intern, this); @@ -743,7 +743,7 @@ PHP_FUNCTION(xmlwriter_start_element_ns) zval *this = getThis(); if (this) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!ss", &prefix, &prefix_len, &name, &name_len, &uri, &uri_len) == FAILURE) { return; } @@ -751,7 +751,7 @@ PHP_FUNCTION(xmlwriter_start_element_ns) } else #endif { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsss", &pind, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs!ss", &pind, &prefix, &prefix_len, &name, &name_len, &uri, &uri_len) == FAILURE) { return; } @@ -839,7 +839,7 @@ PHP_FUNCTION(xmlwriter_write_element_ns) zval *this = getThis(); if (this) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssss", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!sss", &prefix, &prefix_len, &name, &name_len, &uri, &uri_len, &content, &content_len) == FAILURE) { return; } @@ -847,7 +847,7 @@ PHP_FUNCTION(xmlwriter_write_element_ns) } else #endif { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssss", &pind, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs!sss", &pind, &prefix, &prefix_len, &name, &name_len, &uri, &uri_len, &content, &content_len) == FAILURE) { return; } |