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 11--TEST--
22GH-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);
1013chmod ($ filename , 0644 );
1114unlink ($ filename );
1215if ($ is_writable ) die ("skip cannot make file read-only " );
16+ if (posix_geteuid () == 0 ) die ('skip Cannot run test as root. ' );
1317?>
1418--INI--
1519sendmail_path={MAIL:{PWD}/gh7875.mail.out}
1620mail.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
2423function exception_error_handler ($ severity , $ message , $ file , $ line ) {
You can’t perform that action at this time.
0 commit comments