From 724e241c9d9ab88e5b6fdc6d074aa956e9baa523 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Thu, 3 Dec 2020 04:07:47 +0700 Subject: [PATCH] JIT: Update invalid opcache.jit INI value message to include "tracing" and "function" values `opcache.jit` accepts `tracing` and `function` as aliases, but they were not mentioned in the start-up INI warning message. This updates the error message to include all possible values. Closes GH-6490. --- ext/opcache/jit/zend_jit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index b96bcd516d..eb80d5240b 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -4129,7 +4129,7 @@ ZEND_EXT_API int zend_jit_config(zend_string *jit, int stage) } failure: - zend_error(E_WARNING, "Invalid \"opcache.jit\" setting. Should be \"disable\", \"on\", \"off\" or 4-digit number"); + zend_error(E_WARNING, "Invalid \"opcache.jit\" setting. Should be \"disable\", \"on\", \"off\", \"tracing\", \"function\" or 4-digit number"); JIT_G(enabled) = 0; JIT_G(on) = 0; return FAILURE; -- 2.40.0