summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2019-01-19 13:53:32 +0100
committerAnatol Belski <ab@php.net>2019-01-19 13:53:32 +0100
commit52730fa30a848eabfcb02abea30446ef657a0f01 (patch)
tree2b22568c2ed05ac11777879160d3b17c1aa2566b /ext/standard/tests/file
parent2966da70cf10db8b3213513850bbb74931c08e6c (diff)
downloadphp-git-52730fa30a848eabfcb02abea30446ef657a0f01.tar.gz
Skip test on unsuitable build
This test reveals a difference between TS and NTS through all the versions, which is probably too late to fix at this stage of 7.3. While NTS always relies on the system getcwd(), TS uses a fake CWD which might get out of sync when the real dir is deleted. Thus, skip test on unsuitable build. Investigate possibilities to fix this edge case for later versions.
Diffstat (limited to 'ext/standard/tests/file')
-rw-r--r--ext/standard/tests/file/realpath_bug77484.phpt4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/tests/file/realpath_bug77484.phpt b/ext/standard/tests/file/realpath_bug77484.phpt
index 0c291f8f0e..85595d09e3 100644
--- a/ext/standard/tests/file/realpath_bug77484.phpt
+++ b/ext/standard/tests/file/realpath_bug77484.phpt
@@ -5,6 +5,10 @@ Bug #77484 Zend engine crashes when calling realpath in invalid working dir
if (substr(PHP_OS, 0, 3) == 'WIN') {
die("skip can't remove CWD on Windows");
}
+if (PHP_ZTS) {
+ /* TODO eliminate difference in TS build. */
+ die("skip Not for ZTS");
+}
?>
--FILE--
<?php