We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37b84b7 + 3c10246 commit aef9430Copy full SHA for aef9430
ext/standard/tests/mail/gh7875.phpt
@@ -1,8 +1,5 @@
1
--TEST--
2
GH-7875 (mails are sent even if failure to log throws exception)
3
---EXTENSIONS--
4
-mail
5
-posix
6
--SKIPIF--
7
<?php
8
$filename = __DIR__ . "/gh7875.mail.log";
@@ -13,7 +10,10 @@ $is_writable = is_writable($filename);
13
10
chmod($filename, 0644);
14
11
unlink($filename);
15
12
if ($is_writable) die("skip cannot make file read-only");
16
-if (posix_geteuid() == 0) die('skip Cannot run test as root.');
+if (PHP_OS_FAMILY !== "Windows") {
+ if (!extension_loaded('posix')) die('skip POSIX extension not loaded');
+ if (posix_geteuid() == 0) die('skip Cannot run test as root.');
+}
17
?>
18
--INI--
19
sendmail_path={MAIL:{PWD}/gh7875.mail.out}
0 commit comments