diff options
author | Anatol Belski <ab@php.net> | 2019-01-19 13:53:32 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2019-01-19 13:53:32 +0100 |
commit | 52730fa30a848eabfcb02abea30446ef657a0f01 (patch) | |
tree | 2b22568c2ed05ac11777879160d3b17c1aa2566b /ext/standard/tests/file | |
parent | 2966da70cf10db8b3213513850bbb74931c08e6c (diff) | |
download | php-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.phpt | 4 |
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 |