mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
25 lines
523 B
PHP
25 lines
523 B
PHP
--TEST--
|
|
DOMNode: Element Siblings
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
require_once("dom_test.inc");
|
|
|
|
$dom = new DOMDocument;
|
|
$dom->loadXML('<test>foo<bar>FirstElement</bar><bar>LastElement</bar>bar</test>');
|
|
|
|
$element = $dom->documentElement;
|
|
print_node($element->firstElementChild->nextElementSibling);
|
|
print_node($element->lastElementChild->previousElementSibling);
|
|
?>
|
|
--EXPECT--
|
|
Node Name: bar
|
|
Node Type: 1
|
|
Num Children: 1
|
|
Node Content: LastElement
|
|
|
|
Node Name: bar
|
|
Node Type: 1
|
|
Num Children: 1
|
|
Node Content: FirstElement
|