Hi I just watched my apache and simply doing
domxml_new_doc("1.0"); eats memory on the httpd process, which is not released after script end. not much, but constantly... the destructor code for a DomDocument Object looks the following: **** static void php_free_xml_doc(zend_rsrc_list_entry *rsrc TSRMLS_DC) { xmlDoc *doc = (xmlDoc *) rsrc->ptr; if (doc) { node_list_wrapper_dtor(doc->children); node_wrapper_dtor((xmlNodePtr) doc); xmlFreeDoc(doc); } } **** there are no children, so node_list_wrapper_dtor does nothing here. node_wrapper_dtor is (shortened to the relevant stuff): ***** static inline void node_wrapper_dtor(xmlNodePtr node) { zval *wrapper; wrapper = dom_object_get_data(node); if (wrapper != NULL ) { zval_ptr_dtor(&wrapper); } } ***** Anyone any idea, what I have to release additionally to avoid this "memory leak"? I'm not (yet) that much of an expert in ZE :) TIA chregu -- christian stocker | bitflux GmbH | schöneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php