mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
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:
commit
31cdda2440
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user