]> granicus.if.org Git - php/commitdiff
Skip test on unsuitable build
authorAnatol Belski <ab@php.net>
Sat, 19 Jan 2019 12:53:32 +0000 (13:53 +0100)
committerAnatol Belski <ab@php.net>
Sat, 19 Jan 2019 12:53:32 +0000 (13:53 +0100)
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

index 0c291f8f0e3b66265f0d4764366fd7c1ebabb4c0..85595d09e3a55f22c9feeb709c7a06162a5e9139 100644 (file)
@@ -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