Skip to content

Commit 4c35d64

Browse files
committed
Don't skip test on Windows due to missing ext/posix
ext/posix is not available on Windows, but there is no need to check for root (i.e. elevated privileges) on this platform, either. Closes GH-9886.
1 parent 1d67e34 commit 4c35d64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/standard/tests/mail/gh7875.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ sendmail_path={MAIL:{PWD}/gh7875.mail.out}
55
mail.log={PWD}/gh7875.mail.log
66
--SKIPIF--
77
<?php
8-
if (!extension_loaded('posix')) die('skip POSIX extension not loaded');
9-
if (posix_geteuid() == 0) die('skip Cannot run test as root.');
8+
if (PHP_OS_FAMILY !== "Windows") {
9+
if (!extension_loaded('posix')) die('skip POSIX extension not loaded');
10+
if (posix_geteuid() == 0) die('skip Cannot run test as root.');
11+
}
1012
?>
1113
--FILE--
1214
<?php

0 commit comments

Comments
 (0)