xref: /php-src/ext/dom/tests/gh16149.phpt (revision 63e1ebe7)
1--TEST--
2GH-16149 (Null pointer dereference in DOMElement->getAttributeNames())
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$element = new DOMElement("b", null, "a");
8var_dump($element->getAttributeNames());
9?>
10--EXPECT--
11array(1) {
12  [0]=>
13  string(5) "xmlns"
14}
15