Skip to content

Commit 52730fa

Browse files
committed
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.
1 parent 2966da7 commit 52730fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/standard/tests/file/realpath_bug77484.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Bug #77484 Zend engine crashes when calling realpath in invalid working dir
55
if (substr(PHP_OS, 0, 3) == 'WIN') {
66
die("skip can't remove CWD on Windows");
77
}
8+
if (PHP_ZTS) {
9+
/* TODO eliminate difference in TS build. */
10+
die("skip Not for ZTS");
11+
}
812
?>
913
--FILE--
1014
<?php

0 commit comments

Comments
 (0)