note 71841 added to ref.xml

From: Date: Tue, 19 Dec 2006 04:10:59 +0000
Subject: note 71841 added to ref.xml
Groups: php.notes 
Request: Send a blank email to php-notes+get-120761@lists.php.net to get a copy of this message
I just wanted to bring to your attention the misuse of xml_parser_free(). In the examples for vavricek at volny dot cz and forquan, neither of the parser free functions would ever be called. I suggest moving the function or removing it. However, I would moreso suggest moving all the parser_create, etc calls from the constructor to the parse function like in the php source supplied by talraith at withouthonor dot com and moving the xml_parser_free to the end of the parse function. I think this is the best code I've seen here so far: http://www.withouthonor.com/obj_xml.phps Thanks talraith! ---- Server IP: 216.235.15.211 Probable Submitter: 70.64.164.158 ---- Manual Page -- http://www.php.net/manual/en/ref.xml.php Edit -- https://master.php.net/note/edit/71841 Del: integrated -- https://master.php.net/note/delete/71841/integrated Del: useless -- https://master.php.net/note/delete/71841/useless Del: bad code -- https://master.php.net/note/delete/71841/bad+code Del: spam -- https://master.php.net/note/delete/71841/spam Del: non-english -- https://master.php.net/note/delete/71841/non-english Del: in docs -- https://master.php.net/note/delete/71841/in+docs Del: other reasons-- https://master.php.net/note/delete/71841 Reject -- https://master.php.net/note/reject/71841 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120761) next »