Re: PHP 4.0 Bug #2331 Updated: XML function handlers and tagname...

From: Date: Sat, 25 Sep 1999 19:02:52 +0000
Subject: Re: PHP 4.0 Bug #2331 Updated: XML function handlers and tagname...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-11296@lists.php.net to get a copy of this message
OK.. callback worx fine now.. but this code still doesn't work on my systems: i see that you call estrndup.. so i don't understand why it doesn't work... i'm sure you're better in that. thanx. <? $level = 0; $tagname = array(); function XMLFstart($parser, $tgname, $attrs) { $GLOBALS['level']++; $GLOBALS['tagname'][$GLOBALS['level']] = $tgname; # $GLOBALS['tagname'][$GLOBALS['level']] = "$tgname"; print('&lt;'.$GLOBALS['tagname'][$GLOBALS['level']].'&gt;'); } function XMLFend($parser, $tgname) { $GLOBALS['level']--; print('&lt;/'.$GLOBALS['tagname'][$GLOBALS['level']].'&gt;'); } $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "XMLFstart", "XMLFend"); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_parse($xml_parser, '<A><B></B></A>'); xml_parser_free($xml_parser); ?> ----- Original Message ----- From: Bug Database <php-dev@lists.php.net> To: <php-dev@lists.php.net> Sent: Saturday, September 25, 1999 5:58 PM Subject: [PHP-DEV] PHP 4.0 Bug #2331 Updated: XML function handlers and tagname... > ID: 2331 > Updated by: thies > Reported By: bago@datasail.net > Status: Closed > Bug Type: Other > Assigned To: > Comments: > > seems to be fixed in lastest CVS (just checked) > > Full Bug description available at: > http://bugs.php.net/version4/?id=2331 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#11296) next »