]> granicus.if.org Git - php/commitdiff
JIT: Update invalid opcache.jit INI value message to include "tracing" and "function...
authorAyesh Karunaratne <ayesh@ayesh.me>
Wed, 2 Dec 2020 21:07:47 +0000 (04:07 +0700)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 15 Dec 2020 09:18:33 +0000 (10:18 +0100)
`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

index b96bcd516d293aa6b3f1ffa3f3415afc4297521e..eb80d5240bce6c0fe400ff2da4ec867d0231dcf7 100644 (file)
@@ -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;