diff options
author | Rob Richards <rrichards@php.net> | 2007-01-06 18:03:43 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2007-01-06 18:03:43 +0000 |
commit | 57792acabc29f73e4ac3580f7ec2bc748afbb278 (patch) | |
tree | 39d04272ab23b6c2dd585f9cf2e99b452bd390c4 /ext/xmlwriter/php_xmlwriter.c | |
parent | d1891c3d8ad579a9d171cac4a8e5d03fe7f4d927 (diff) | |
download | php-git-57792acabc29f73e4ac3580f7ec2bc748afbb278.tar.gz |
MFH: parameter entity argument (pe) should be bool
update test
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.c')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 84f1522c20..ac823b217b 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -1347,13 +1347,14 @@ static PHP_FUNCTION(xmlwriter_write_dtd_entity) int name_len, content_len, retval; /* Optional parameters */ char *pubid = NULL, *sysid = NULL, *ndataid = NULL; - int pe = 0, pubid_len, sysid_len, ndataid_len; + zend_bool pe = 0; + int pubid_len, sysid_len, ndataid_len; #ifdef ZEND_ENGINE_2 zval *this = getThis(); if (this) { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lsss", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|bsss", &name, &name_len, &content, &content_len, &pe, &pubid, &pubid_len, &sysid, &sysid_len, &ndataid, &ndataid_len) == FAILURE) { return; @@ -1362,7 +1363,7 @@ static PHP_FUNCTION(xmlwriter_write_dtd_entity) } else #endif { - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|lsss", &pind, + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|bsss", &pind, &name, &name_len, &content, &content_len, &pe, &pubid, &pubid_len, &sysid, &sysid_len, &ndataid, &ndataid_len) == FAILURE) { return; |