ID: 6658 Updated by: thies Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: XML related Assigned To: Comments: try latest CVS. resubmit if the problem is still there! Previous Comments: --------------------------------------------------------------------------- [2000-09-11 14:31:30] [EMAIL PROTECTED] I do not understand why the below script works on 4.01pl2 but does not work on 4.02, there are no php error message, but only the standart error "the page cannot be displayed" I suspect i implement xml methods that does not being supported at 4.02 <? class xml { var $buffer; var $parser; var $returntidak; var $returnsatu; var $returnlebih; var $returnvar; var $hihi; var $votetidak; function xml() { $this->parser = xml_parser_create(); xml_set_object($this->parser,&$this); $returntidak=xml_set_element_handler($this->parser,"tag_open","tag_close"); //echo $returntidak; //xml_set_character_data_handler($this->parser,"cdata"); } function parse($data){ xml_parse($this->parser,$data); } function sethasil($hasil) { $returntidak=$hasil; } function gethasil() { echo $returntidak; return $returntidak; } function parse($data) { xml_parse($this->parser,$data); } function tag_open($parser,$tag,$attributes){ $votetidak=0; while (list ($key, $val) = each ($attributes)) { if (strcmp($tag,"TIDAKADA")==0) { $votetidak=$val; echo "<p>".$val . " orang memilih Indonesia tidak bakal mendapatkan emas"; } if (strcmp($tag,"SATU")==0) { $votesatu=$val; echo "<p>".$val . " orang memilih Indonesia bakal mendapatkan 1 emas"; } if (strcmp($tag,"LEBIH")==0) { $votelebih=$val; echo "<p>".$val . " orang memilih Indonesia bakal mendapatkan lebih dari 1 emas"; } } } function cdata($parser,$cdata){ //var_dump($parser,$cdata); } function tag_close ($parser,$tag){ //var_dump($parser,$tag); } } function tag_open($parser,$tag,$attributes) { var_dump($parser,$tag,$attributes); } function cdata($parser,$cdata) { var_dump($parser,$cdata); } ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6658&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]