Vivarium · Layer 1 · php-wasm

Reproducing php/php-src#12167

PHP's SimpleXML can find a processing-instruction node via xpath("//processing-instruction()"), but casting that node to string yields an empty value instead of the PI's content. xpath returns the node — the count is one — so the bug is purely in the string-cast path for processing-instruction nodes.

Verdict

Loading php-wasm runtime…

Reproduction script

Output

(running)