File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ opcache.log_verbosity_level=2
11
11
opcache.interned_strings_buffer=8
12
12
--SKIPIF--
13
13
<?php
14
- if (!posix_setrlimit (POSIX_RLIMIT_FSIZE , 1 , 1 )) die ('skip Test requires setrlimit(RLIMIT_FSIZE) to work ' );
14
+ if (!posix_setrlimit (POSIX_RLIMIT_FSIZE , 1 , - 1 )) die ('skip Test requires setrlimit(RLIMIT_FSIZE) to work ' );
15
15
if (ini_parse_quantity (ini_get ('opcache.jit_buffer_size ' )) !== 0 ) die ('skip File cache is disabled when JIT is on ' );
16
+ // Allow gcov to write to file
17
+ posix_setrlimit (POSIX_RLIMIT_FSIZE , -1 , -1 );
16
18
?>
17
19
--FILE--
18
20
<?php
@@ -31,10 +33,13 @@ if (defined('SIGXFSZ')) {
31
33
}
32
34
33
35
// Should cause writing to cache file to fail
34
- var_dump (posix_setrlimit (POSIX_RLIMIT_FSIZE , 1 , 1 ));
36
+ var_dump (posix_setrlimit (POSIX_RLIMIT_FSIZE , 1 , - 1 ));
35
37
36
38
// Will attempt to write to cache file, and fail
37
39
require $ file ;
40
+
41
+ // Allow gcov to write to file
42
+ posix_setrlimit (POSIX_RLIMIT_FSIZE , -1 , -1 );
38
43
?>
39
44
--EXPECTF--
40
45
bool(true)
You can’t perform that action at this time.
0 commit comments