From: Ilia Alshanetsky Date: Mon, 1 Jan 2007 19:21:48 +0000 (+0000) Subject: Added missing entity functions (MFH from HEAD) X-Git-Tag: php-5.2.1RC2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5787b56554b5155262e3d9cfcc9123259a551f6e;p=php Added missing entity functions (MFH from HEAD) Fixed php_xmlwriter_streams_IO_close() docs --- diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 18d36ee80c..627307d1ef 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -72,6 +72,9 @@ static PHP_FUNCTION(xmlwriter_write_dtd_element); static PHP_FUNCTION(xmlwriter_start_dtd_attlist); static PHP_FUNCTION(xmlwriter_end_dtd_attlist); static PHP_FUNCTION(xmlwriter_write_dtd_attlist); +static PHP_FUNCTION(xmlwriter_start_dtd_entity); +static PHP_FUNCTION(xmlwriter_end_dtd_entity); +static PHP_FUNCTION(xmlwriter_write_dtd_entity); #endif static PHP_FUNCTION(xmlwriter_open_uri); static PHP_FUNCTION(xmlwriter_open_memory); @@ -215,6 +218,9 @@ static zend_function_entry xmlwriter_functions[] = { PHP_FE(xmlwriter_start_dtd_attlist, NULL) PHP_FE(xmlwriter_end_dtd_attlist, NULL) PHP_FE(xmlwriter_write_dtd_attlist, NULL) + PHP_FE(xmlwriter_start_dtd_entity, NULL) + PHP_FE(xmlwriter_end_dtd_entity, NULL) + PHP_FE(xmlwriter_write_dtd_entity, NULL) #endif PHP_FE(xmlwriter_output_memory, NULL) PHP_FE(xmlwriter_flush, NULL) @@ -269,6 +275,9 @@ static zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(startDtdAttlist, xmlwriter_start_dtd_attlist, NULL, 0) PHP_ME_MAPPING(endDtdAttlist, xmlwriter_end_dtd_attlist, NULL, 0) PHP_ME_MAPPING(writeDtdAttlist, xmlwriter_write_dtd_attlist, NULL, 0) + PHP_ME_MAPPING(startDtdEntity, xmlwriter_start_dtd_entity, NULL, 0) + PHP_ME_MAPPING(endDtdEntity, xmlwriter_end_dtd_entity, NULL, 0) + PHP_ME_MAPPING(writeDtdEntity, xmlwriter_write_dtd_entity, NULL, 0) #endif PHP_ME_MAPPING(outputMemory, xmlwriter_output_memory, NULL, 0) PHP_ME_MAPPING(flush, xmlwriter_flush, NULL, 0) @@ -357,7 +366,7 @@ static int php_xmlwriter_streams_IO_write(void *context, const char *buffer, int } /* }}} */ -/* {{{ xmlwriter_objects_clone */ +/* {{{ php_xmlwriter_streams_IO_close */ static int php_xmlwriter_streams_IO_close(void *context) { TSRMLS_FETCH();