From 2c3dc130274ed8a7f32f71323cfd82ff3662e7d5 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Tue, 8 Apr 2003 13:19:49 +0000 Subject: - Fixes a bunch of memleaks, especially with attributes (by Rob Richards and me) - Added domdocument->free() for freeing documents during script-time #will later merge to PHP_4_3 --- ext/domxml/php_domxml.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/domxml/php_domxml.h') diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h index 0053a54cff..e7c6c86323 100644 --- a/ext/domxml/php_domxml.h +++ b/ext/domxml/php_domxml.h @@ -53,7 +53,7 @@ therefore it's easier for the script-programmers to check, what's working how Can be checked with phpversion("domxml"); */ -#define DOMXML_API_VERSION "20030405" +#define DOMXML_API_VERSION "20030407" extern zend_module_entry domxml_module_entry; #define domxml_module_ptr &domxml_module_entry @@ -73,7 +73,7 @@ PHPAPI zval *php_domobject_new(xmlNodePtr obj, int *found, zval* in TSRMLS_DC); /* directory functions */ PHP_MINIT_FUNCTION(domxml); -PHP_RINIT_FUNCTION(domxml); +PHP_MSHUTDOWN_FUNCTION(domxml); PHP_MINFO_FUNCTION(domxml); PHP_FUNCTION(domxml_version); PHP_FUNCTION(xmldoc); @@ -109,6 +109,7 @@ PHP_FUNCTION(domxml_dump_mem_file); PHP_FUNCTION(domxml_dump_node); PHP_FUNCTION(domxml_doc_validate); PHP_FUNCTION(domxml_doc_xinclude); +PHP_FUNCTION(domxml_doc_free_doc); #if defined(LIBXML_HTML_ENABLED) PHP_FUNCTION(domxml_html_dump_mem); #endif -- cgit v1.2.1