Re: cvs: php4 /ext/xml xml.c

From: Date: Mon, 24 Mar 2003 20:45:45 +0000
Subject: Re: cvs: php4 /ext/xml xml.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19751@lists.php.net to get a copy of this message
This commit is causing a lot of leaks (see the test result of xml003.phpt). Does this really break anything? If so, I want to suggest another patch pasted below. Moriyoshi Index: ext/xml/xml.c =================================================================== RCS file: /repository/php4/ext/xml/xml.c,v retrieving revision 1.116 diff -u -r1.116 xml.c --- ext/xml/xml.c 21 Mar 2003 05:26:56 -0000 1.116 +++ ext/xml/xml.c 24 Mar 2003 21:36:17 -0000 @@ -1131,9 +1131,9 @@ parser->object = *mythis; /* please leave this commented - or ask thies@thieso.net before doing it (again) */ -#ifdef ZEND_ENGINE_2 +/* #ifdef ZEND_ENGINE_2 zval_add_ref(&parser->object); -#endif +#endif */ RETVAL_TRUE; } "Sterling Hughes" <sterling@bumblebury.com> wrote: > sterling Fri Mar 21 00:26:56 2003 EDT > > Modified files: > /php4/ext/xml xml.c > Log: > This broke the xml extension, and pres2, commented out for now > > > Index: php4/ext/xml/xml.c > diff -u php4/ext/xml/xml.c:1.115 php4/ext/xml/xml.c:1.116 > --- php4/ext/xml/xml.c:1.115 Tue Mar 18 07:06:04 2003 > +++ php4/ext/xml/xml.c Fri Mar 21 00:26:56 2003 > @@ -17,7 +17,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: xml.c,v 1.115 2003/03/18 12:06:04 ssb Exp $ */ > +/* $Id: xml.c,v 1.116 2003/03/21 05:26:56 sterling Exp $ */ > > #define IS_EXT_MODULE > > @@ -287,11 +287,11 @@ > xml_parser *parser = (xml_parser *)rsrc->ptr; > > /* please leave this commented - or ask thies@thieso.net before doing it (again) */ > -#ifdef ZEND_ENGINE_2 > +/*#ifdef ZEND_ENGINE_2 > if (parser->object) { > zval_ptr_dtor(&parser->object); > } > -#endif > +#endif */ > > if (parser->parser) { > XML_ParserFree(parser->parser); > > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.cvs (#19751) next »