File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
GH-7875 (mails are sent even if failure to log throws exception)
3
+ --EXT--
4
+ mail
5
+ posix
3
6
--SKIPIF--
4
7
<?php
5
8
$ filename = __DIR__ . "/gh7875.mail.log " ;
@@ -10,15 +13,11 @@ $is_writable = is_writable($filename);
10
13
chmod ($ filename , 0644 );
11
14
unlink ($ filename );
12
15
if ($ is_writable ) die ("skip cannot make file read-only " );
16
+ if (posix_geteuid () == 0 ) die ('skip Cannot run test as root. ' );
13
17
?>
14
18
--INI--
15
19
sendmail_path={MAIL:{PWD}/gh7875.mail.out}
16
20
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
- ?>
22
21
--FILE--
23
22
<?php
24
23
function exception_error_handler ($ severity , $ message , $ file , $ line ) {
You can’t perform that action at this time.
0 commit comments