From 52730fa30a848eabfcb02abea30446ef657a0f01 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 19 Jan 2019 13:53:32 +0100 Subject: 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. --- ext/standard/tests/file/realpath_bug77484.phpt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/standard/tests/file') 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--