We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
<?php $xml = <<<XML <?xml version="1.0" encoding="utf-8"?> <foo> <bar><?foo hello ?></bar> </foo> XML; $sxe = simplexml_load_string($xml); var_dump($sxe->xpath("//processing-instruction()")[0]->getName()); var_dump((string) $sxe->xpath("//processing-instruction()")[0]);
Resulted in this output:
string(3) "bar" string(0) ""
But I expected this output instead:
string(3) "bar" string(3) "hello"
8.1+
Linux
The text was updated successfully, but these errors were encountered:
Fix phpGH-12167 and phpGH-12169: Unable to get comment or processing …
24b2b46
…instruction contents in SimpleXML
Merge branch 'PHP-8.1' into PHP-8.2
9c37a02
* PHP-8.1: Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML
82a84d0
Merge branch 'PHP-8.2' into PHP-8.3
190a535
* PHP-8.2: Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML
Merge branch 'PHP-8.3'
2e8cdd8
* PHP-8.3: Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
8.1+
Operating System
Linux
The text was updated successfully, but these errors were encountered: