Skip to content

Commit

Permalink
add system check
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Jun 11, 2024
1 parent 8867da8 commit 0590aee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/micro/phar.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ fclose($selffile);

chmod("phartest.exe", 0755);

passthru("./phartest.exe", $ret);
if (PHP_OS_FAMILY === 'Windows') {
passthru('.\phartest.exe', $ret);
} else {
passthru("./phartest.exe", $ret);
}
if ($ret !== 0) {
echo "Failed to execute phar\n";
exit(1);
Expand Down

0 comments on commit 0590aee

Please sign in to comment.