Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
  Don't skip test on Windows due to missing ext/posix
This commit is contained in:
Christoph M. Becker 2022-11-07 15:07:09 +01:00
commit 31cdda2440
No known key found for this signature in database
GPG Key ID: D66C9593118BCCB6

View File

@ -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";
@ -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}