← Back
Editing: bug48601.phpt
--TEST-- Bug #48601 (xpath() returns FALSE for legitimate query) --EXTENSIONS-- simplexml --FILE-- <?php $sxe = simplexml_load_string('<root><node1>1</node1></root>'); $nodes = $sxe->xpath("/root/node2/@test"); if (! is_array($nodes)) { echo "An error occurred\n"; } else { echo "Result Count: " . count($nodes) . "\n"; } ?> --EXPECT-- Result Count: 0
Save File
Cancel