Skip to content

Commit d2c6634

Browse files
committed
Fix duplicate SKIPIF section
1 parent ed1e703 commit d2c6634

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ext/standard/tests/mail/gh7875.phpt

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
--TEST--
22
GH-7875 (mails are sent even if failure to log throws exception)
3+
--EXT--
4+
mail
5+
posix
36
--SKIPIF--
47
<?php
58
$filename = __DIR__ . "/gh7875.mail.log";
@@ -10,15 +13,11 @@ $is_writable = is_writable($filename);
1013
chmod($filename, 0644);
1114
unlink($filename);
1215
if ($is_writable) die("skip cannot make file read-only");
16+
if (posix_geteuid() == 0) die('skip Cannot run test as root.');
1317
?>
1418
--INI--
1519
sendmail_path={MAIL:{PWD}/gh7875.mail.out}
1620
mail.log={PWD}/gh7875.mail.log
17-
--SKIPIF--
18-
<?php
19-
if (!extension_loaded('posix')) die('skip POSIX extension not loaded');
20-
if (posix_geteuid() == 0) die('skip Cannot run test as root.');
21-
?>
2221
--FILE--
2322
<?php
2423
function exception_error_handler($severity, $message, $file, $line) {

0 commit comments

Comments
 (0)