Skip to content

Commit 591dcdb

Browse files
committed
Use different error condition in ACCEL_LOG_FATAL test
This test fails on s390x with opcache. Presumably the large allocation works fine there as long as it's not used. Switch to a different error condition that produces a more reliable failure.
1 parent 46a6d48 commit 591dcdb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ext/opcache/tests/log_verbosity_bug.phpt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
--TEST--
22
Test ACCEL_LOG_FATAL will cause the process to die even if not logged
33
--DESCRIPTION--
4-
This test forces the opcache to error by setting memory_comsumption very large.
4+
This test forces the opcache to error by setting file_cache_only without file_cache.
55
The resulting ACCEL_LOG_FATAL should cause php to die.
66
The process should die regardless of the log_verbosity_level.
77
--INI--
88
opcache.enable=1
99
opcache.enable_cli=1
10-
opcache.file_cache_only=0
11-
opcache.file_cache_fallback=0
12-
opcache.memory_consumption=999999999
10+
opcache.file_cache=
11+
opcache.file_cache_only=1
1312
opcache.log_verbosity_level=-1
1413
--EXTENSIONS--
1514
opcache

0 commit comments

Comments
 (0)