summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyesh Karunaratne <ayesh@ayesh.me>2020-12-03 04:07:47 +0700
committerNikita Popov <nikita.ppv@gmail.com>2020-12-15 10:18:33 +0100
commit724e241c9d9ab88e5b6fdc6d074aa956e9baa523 (patch)
tree6c8228732a95e68d72abf68892f68cd822ebddfa
parentb6d043aae25ea872f9768e19e0999545ab0298f1 (diff)
downloadphp-git-724e241c9d9ab88e5b6fdc6d074aa956e9baa523.tar.gz
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.
-rw-r--r--ext/opcache/jit/zend_jit.c2
1 files changed, 1 insertions, 1 deletions
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;