Skip to content

Commit

Permalink
Merge branch 'PHP-8.1' into PHP-8.2
Browse files Browse the repository at this point in the history
* PHP-8.1:
  Don't skip test on Windows due to missing ext/posix
  • Loading branch information
cmb69 committed Nov 7, 2022
2 parents 05b63b1 + 31cdda2 commit 3c10246
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/standard/tests/mail/gh7875.phpt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
--TEST--
GH-7875 (mails are sent even if failure to log throws exception)
--EXTENSIONS--
mail
posix
--SKIPIF--
<?php
$filename = __DIR__ . "/gh7875.mail.log";
Expand All @@ -13,7 +10,10 @@ $is_writable = is_writable($filename);
chmod($filename, 0644);
unlink($filename);
if ($is_writable) die("skip cannot make file read-only");
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.');
}
?>
--INI--
sendmail_path={MAIL:{PWD}/gh7875.mail.out}
Expand Down

0 comments on commit 3c10246

Please sign in to comment.