rrichards Fri Feb 23 11:13:42 2007 UTC Modified files: /php-src/ext/libxml libxml.c Log: fix bug #40598 (libxml segfault) mark more functions unicode safe http://cvs.php.net/viewvc.cgi/php-src/ext/libxml/libxml.c?r1=1.57&r2=1.58&diff_format=u Index: php-src/ext/libxml/libxml.c diff -u php-src/ext/libxml/libxml.c:1.57 php-src/ext/libxml/libxml.c:1.58 --- php-src/ext/libxml/libxml.c:1.57 Mon Jan 8 20:01:23 2007 +++ php-src/ext/libxml/libxml.c Fri Feb 23 11:13:42 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: libxml.c,v 1.57 2007/01/08 20:01:23 pollita Exp $ */ +/* $Id: libxml.c,v 1.58 2007/02/23 11:13:42 rrichards Exp $ */ #define IS_EXT_MODULE @@ -246,6 +246,7 @@ case XML_ENTITY_DECL: case XML_ATTRIBUTE_NODE: case XML_NAMESPACE_DECL: + case XML_TEXT_NODE: php_libxml_node_free_list(node->children TSRMLS_CC); break; default: @@ -688,7 +689,7 @@ } /* }}} */ -/* {{{ proto void libxml_set_streams_context(resource streams_context) +/* {{{ proto void libxml_set_streams_context(resource streams_context) U Set the streams context for the next libxml document load or write */ static PHP_FUNCTION(libxml_set_streams_context) { @@ -706,7 +707,7 @@ } /* }}} */ -/* {{{ proto void libxml_use_internal_errors([boolean use_errors]) +/* {{{ proto void libxml_use_internal_errors([boolean use_errors]) U Disable libxml errors and allow user to fetch error information as needed */ static PHP_FUNCTION(libxml_use_internal_errors) { @@ -746,7 +747,7 @@ } /* }}} */ -/* {{{ proto object libxml_get_last_error() +/* {{{ proto object libxml_get_last_error() Retrieve last error from libxml */ static PHP_FUNCTION(libxml_get_last_error) { @@ -818,7 +819,7 @@ } /* }}} */ -/* {{{ proto void libxml_clear_errors() +/* {{{ proto void libxml_clear_errors() U Clear last error from libxml */ static PHP_FUNCTION(libxml_clear_errors) { @@ -1017,6 +1018,7 @@ case XML_ENTITY_DECL: case XML_ATTRIBUTE_NODE: case XML_NAMESPACE_DECL: + case XML_TEXT_NODE: break; default: php_libxml_node_free_list((xmlNodePtr) node->properties TSRMLS_CC);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php