note 85619 added to function.xml-parse-into-struct

From: Date: Tue, 09 Sep 2008 13:08:47 +0000
Subject: note 85619 added to function.xml-parse-into-struct
Groups: php.notes 
Request: Send a blank email to php-notes+get-144261@lists.php.net to get a copy of this message
Many examples below using this function check if a given tag returned is of type "cdata". It seems to me nowadays CDATA sections are not detected by all implementations, if any. In the servers I could test (FreeBSD 6.2 with PHP 5.2.6 and libxml 2.6.26 or PHP 4.4.8 and expat 2.0.0 - MacOSX 10.5.4 with PHP 5.2.6 and libxml 2.6.16) my CDATA sections were reported as being of type "complete". This problem was reported earlier as a bug (#26188), but was discarded because "the behaviour is quite dependent on the backend XML parsing implementation" (sic). So if you want to detect CDATA sections and not depend on a given implementation, you'll have to forget this function and use xml_parse and xml_set_character_data_handler instead. ---- Server IP: 130.206.1.5 Probable Submitter: 85.52.224.5 ---- Manual Page -- http://www.php.net/manual/en/function.xml-parse-into-struct.php Edit -- https://master.php.net/note/edit/85619 Del: integrated -- https://master.php.net/note/delete/85619/integrated Del: useless -- https://master.php.net/note/delete/85619/useless Del: bad code -- https://master.php.net/note/delete/85619/bad+code Del: spam -- https://master.php.net/note/delete/85619/spam Del: non-english -- https://master.php.net/note/delete/85619/non-english Del: in docs -- https://master.php.net/note/delete/85619/in+docs Del: other reasons-- https://master.php.net/note/delete/85619 Reject -- https://master.php.net/note/reject/85619 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144261) next »