Re: Problem With XML Parser Objects

From: Date: Thu, 31 Aug 2000 14:12:16 +0000
Subject: Re: Problem With XML Parser Objects
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-31429@lists.php.net to get a copy of this message
On Thu, 31 Aug 2000, Sandino Araico Sánchez wrote: > Lines 19-29: > function map_xml_image_parser () { > $this->parser = xml_parser_create(); > xml_set_object($this->parser,$this); > xml_set_element_handler($this->parser,"tag_open","null_function"); > xml_set_character_data_handler($this->parser,"null_function"); > } > > function parse($data) { > xml_parse($this->parser,$data); > } > > 27 is xml_parse($this->parser,$data); > > Functions tag_open and null_function do exist in the class. I just fixed this. Notice that you'll have to call xml_parser_free() manually, otherwise there will be a leak (it'll get fixed later, hopefully). -Andrei * Use the source, Luke. *

« previous php.dev (#31429) next »