summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Boks <arnoutboks@gmail.com>2017-01-02 11:46:58 +0100
committerJoe Watkins <krakjoe@php.net>2017-01-02 11:56:33 +0000
commit19c4a2ef192d39316bf472d91cbd77f637a79a23 (patch)
tree98d074685b5341379d62db7771cd6b7a0a8128e2
parent3e798c4a5f143ca46feab994d5f446c15aef8e98 (diff)
downloadphp-git-19c4a2ef192d39316bf472d91cbd77f637a79a23.tar.gz
Add (failing) testcase for bug #67474
-rw-r--r--ext/dom/tests/bug67474.phpt18
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)