note 98426 added to function.xml-set-processing-instruction-handler
| From: | darkdevine at hotmail dot de | Date: | Tue, 15 Jun 2010 12:26:37 +0000 |
| Subject: | note 98426 added to function.xml-set-processing-instruction-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170134@lists.php.net to get a copy of this message | ||
I don't see how this one is working how it should be.
Case 1:
Xml:
<?xml version="1.0" encoding="utf-8"?>
[xml...]
Case 2:
Xml:
<?test nocache="false"?>
<?xml version="1.0" encoding="utf-8"?>
[xml...]
Handler:
private function _parseProcessingInstruction( $p, $dest, $data ) {
echo 'Processing Instruction: '.$dest.' - '.$data.' '.__CLASS__;
}
Output Case 1:
None
Output Case 2:
Processing Instruction: jade - nocache="false" XmlTest
In case 1, nothing will be parsed, in case 2 the parser stops after the first processing
instruction.
Did I get something wrong?
----
Server IP: 85.214.154.209
Probable Submitter: 80.152.175.254
----
Manual Page -- http://www.php.net/manual/en/function.xml-set-processing-instruction-handler.php
Edit -- https://master.php.net/note/edit/98426
Del: integrated -- https://master.php.net/note/delete/98426/integrated
Del: useless -- https://master.php.net/note/delete/98426/useless
Del: bad code -- https://master.php.net/note/delete/98426/bad+code
Del: spam -- https://master.php.net/note/delete/98426/spam
Del: non-english -- https://master.php.net/note/delete/98426/non-english
Del: in docs -- https://master.php.net/note/delete/98426/in+docs
Del: other reasons-- https://master.php.net/note/delete/98426
Reject -- https://master.php.net/note/reject/98426
Search -- https://master.php.net/manage/user-notes.php