Skip to content

Commit 0590aee

Browse files
committed
add system check
1 parent 8867da8 commit 0590aee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/micro/phar.phpt

+5-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ fclose($selffile);
102102

103103
chmod("phartest.exe", 0755);
104104

105-
passthru("./phartest.exe", $ret);
105+
if (PHP_OS_FAMILY === 'Windows') {
106+
passthru('.\phartest.exe', $ret);
107+
} else {
108+
passthru("./phartest.exe", $ret);
109+
}
106110
if ($ret !== 0) {
107111
echo "Failed to execute phar\n";
108112
exit(1);

0 commit comments

Comments
 (0)