1--TEST--
2NodeList dimensions errors
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createFromString('<root><a/><b/><c/></root>');
9$children = $dom->documentElement->childNodes;
10
11try {
12    $children[][0] = 1;
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19Cannot append to Dom\NodeList
20