summaryrefslogtreecommitdiff
path: root/ext/dom
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-24 21:31:03 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-24 21:31:03 +0100
commit4a8b93425dae191424410ed69f9ccc68faa5b118 (patch)
tree32cf7d9826d1e5e6695dec3ab6b9e92cf0e8db5b /ext/dom
parent5caf29a01e8498ecf3cfabceee8cf60a0fd39eb8 (diff)
parent44ef32ff2cc01d67fefb4e52c5bd29ed5ae3f858 (diff)
downloadphp-git-4a8b93425dae191424410ed69f9ccc68faa5b118.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Fix potential file collision in dom tests Fix bug #80757 (Exit code is 0 when could not open file) Update NEWS
Diffstat (limited to 'ext/dom')
-rw-r--r--ext/dom/tests/DOMDocument_saveHTMLFile_basic.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_saveHTMLFile_formatOutput.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/tests/DOMDocument_saveHTMLFile_basic.phpt b/ext/dom/tests/DOMDocument_saveHTMLFile_basic.phpt
index 30c090679c..f71db0c32a 100644
--- a/ext/dom/tests/DOMDocument_saveHTMLFile_basic.phpt
+++ b/ext/dom/tests/DOMDocument_saveHTMLFile_basic.phpt
@@ -9,7 +9,7 @@ require_once __DIR__ .'/skipif.inc';
?>
--FILE--
<?php
-$filename = __DIR__."/tmp_savehtmlfile".time().".html";
+$filename = __DIR__."/DOMDocument_saveHTMLFile_basic.html";
$doc = new DOMDocument('1.0');
$root = $doc->createElement('html');
$root = $doc->appendChild($root);
diff --git a/ext/dom/tests/DOMDocument_saveHTMLFile_formatOutput.phpt b/ext/dom/tests/DOMDocument_saveHTMLFile_formatOutput.phpt
index 02ced08282..376c9a8e32 100644
--- a/ext/dom/tests/DOMDocument_saveHTMLFile_formatOutput.phpt
+++ b/ext/dom/tests/DOMDocument_saveHTMLFile_formatOutput.phpt
@@ -9,7 +9,7 @@ require_once __DIR__ .'/skipif.inc';
?>
--FILE--
<?php
-$filename = __DIR__."/tmp_savehtmlfile".time().".html";
+$filename = __DIR__."/DOMDocument_saveHTMLFile_formatOutput.html";
$doc = new DOMDocument('1.0');
$doc->formatOutput = true;
$root = $doc->createElement('html');