Skip to content

Commit 5787b56

Browse files
author
Ilia Alshanetsky
committed
Added missing entity functions (MFH from HEAD) Fixed php_xmlwriter_streams_IO_close() docs
1 parent 4223aa4 commit 5787b56

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ext/xmlwriter/php_xmlwriter.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ static PHP_FUNCTION(xmlwriter_write_dtd_element);
7272
static PHP_FUNCTION(xmlwriter_start_dtd_attlist);
7373
static PHP_FUNCTION(xmlwriter_end_dtd_attlist);
7474
static PHP_FUNCTION(xmlwriter_write_dtd_attlist);
75+
static PHP_FUNCTION(xmlwriter_start_dtd_entity);
76+
static PHP_FUNCTION(xmlwriter_end_dtd_entity);
77+
static PHP_FUNCTION(xmlwriter_write_dtd_entity);
7578
#endif
7679
static PHP_FUNCTION(xmlwriter_open_uri);
7780
static PHP_FUNCTION(xmlwriter_open_memory);
@@ -215,6 +218,9 @@ static zend_function_entry xmlwriter_functions[] = {
215218
PHP_FE(xmlwriter_start_dtd_attlist, NULL)
216219
PHP_FE(xmlwriter_end_dtd_attlist, NULL)
217220
PHP_FE(xmlwriter_write_dtd_attlist, NULL)
221+
PHP_FE(xmlwriter_start_dtd_entity, NULL)
222+
PHP_FE(xmlwriter_end_dtd_entity, NULL)
223+
PHP_FE(xmlwriter_write_dtd_entity, NULL)
218224
#endif
219225
PHP_FE(xmlwriter_output_memory, NULL)
220226
PHP_FE(xmlwriter_flush, NULL)
@@ -269,6 +275,9 @@ static zend_function_entry xmlwriter_class_functions[] = {
269275
PHP_ME_MAPPING(startDtdAttlist, xmlwriter_start_dtd_attlist, NULL, 0)
270276
PHP_ME_MAPPING(endDtdAttlist, xmlwriter_end_dtd_attlist, NULL, 0)
271277
PHP_ME_MAPPING(writeDtdAttlist, xmlwriter_write_dtd_attlist, NULL, 0)
278+
PHP_ME_MAPPING(startDtdEntity, xmlwriter_start_dtd_entity, NULL, 0)
279+
PHP_ME_MAPPING(endDtdEntity, xmlwriter_end_dtd_entity, NULL, 0)
280+
PHP_ME_MAPPING(writeDtdEntity, xmlwriter_write_dtd_entity, NULL, 0)
272281
#endif
273282
PHP_ME_MAPPING(outputMemory, xmlwriter_output_memory, NULL, 0)
274283
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
357366
}
358367
/* }}} */
359368

360-
/* {{{ xmlwriter_objects_clone */
369+
/* {{{ php_xmlwriter_streams_IO_close */
361370
static int php_xmlwriter_streams_IO_close(void *context)
362371
{
363372
TSRMLS_FETCH();

0 commit comments

Comments
 (0)