mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
9e29f17493
# After long discussions we came to a conclusion on how to make this # extension consistent in itself. # Thanks to Rob for all the work
21 lines
403 B
PHP
21 lines
403 B
PHP
--TEST--
|
|
SimpleXML and XPath
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');
|
|
var_dump($sxe->xpath("elem1/elem2/elem3/elem4"));
|
|
var_dump($sxe->xpath("***"));
|
|
?>
|
|
--EXPECTF--
|
|
array(1) {
|
|
[0]=>
|
|
object(simplexml_element)#%d (1) {
|
|
["test"]=>
|
|
object(simplexml_element)#%d (0) {
|
|
}
|
|
}
|
|
}
|
|
bool(false)
|