mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
For rationale, see #6787 Extensions migrated in part 4: * simplexml * skeleton * soap * spl * sqlite3 * sysvmsg * sysvsem * tidy - also removed a check for an ancient dependency version
21 lines
363 B
PHP
21 lines
363 B
PHP
--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
|