summaryrefslogtreecommitdiff
path: root/ext/dom/tests
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-04-05 16:01:24 -0700
committerStanislav Malyshev <stas@php.net>2015-04-11 16:53:22 -0700
commit4435b9142ff9813845d5c97ab29a5d637bedb257 (patch)
treea6451ac31e1418813a46f73dfffe805421e5a55e /ext/dom/tests
parent9faaee66fa493372c7340b1ab05f8fd115131a42 (diff)
downloadphp-git-4435b9142ff9813845d5c97ab29a5d637bedb257.tar.gz
Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions)
Diffstat (limited to 'ext/dom/tests')
-rw-r--r--ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt b/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt
index e59ff56c5a..75004e2a74 100644
--- a/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt
+++ b/ext/dom/tests/DOMDocument_loadHTMLfile_error2.phpt
@@ -13,6 +13,11 @@ assert.bail=true
$doc = new DOMDocument();
$result = $doc->loadHTMLFile("");
assert('$result === false');
+$doc = new DOMDocument();
+$result = $doc->loadHTMLFile("text.html\0something");
+assert('$result === null');
?>
--EXPECTF--
%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Empty string supplied as input %s
+
+%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile() expects parameter 1 to be a valid path, string given %s