diff options
author | Arnout Boks <arnoutboks@gmail.com> | 2017-01-02 11:46:58 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-01-02 11:56:33 +0000 |
commit | 19c4a2ef192d39316bf472d91cbd77f637a79a23 (patch) | |
tree | 98d074685b5341379d62db7771cd6b7a0a8128e2 /ext/dom | |
parent | 3e798c4a5f143ca46feab994d5f446c15aef8e98 (diff) | |
download | php-git-19c4a2ef192d39316bf472d91cbd77f637a79a23.tar.gz |
Add (failing) testcase for bug #67474
Diffstat (limited to 'ext/dom')
-rw-r--r-- | ext/dom/tests/bug67474.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/dom/tests/bug67474.phpt b/ext/dom/tests/bug67474.phpt new file mode 100644 index 0000000000..953127fa0b --- /dev/null +++ b/ext/dom/tests/bug67474.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #67474 getElementsByTagNameNS and default namespace +--SKIPIF-- +<?php +require_once('skipif.inc'); +?> +--FILE-- +<?php +$doc = new DOMDocument(); +$doc->loadXML('<root xmlns:x="x"><a/><x:a/></root>'); +$list = $doc->getElementsByTagNameNS('', 'a'); +var_dump($list->length); +$list = $doc->getElementsByTagNameNS(null, 'a'); +var_dump($list->length); +?> +--EXPECT-- +int(1) +int(1) |