]> granicus.if.org Git - php/commitdiff
Hide phpdbg/JIT incompatibility macro (JIT is disabled for phpdbg)
authorDmitry Stogov <dmitry@zend.com>
Mon, 30 Nov 2020 13:42:17 +0000 (16:42 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 30 Nov 2020 13:42:17 +0000 (16:42 +0300)
ext/opcache/jit/zend_jit.c

index 60086403aab5307e9c21b67873952a2117909d0a..bcba053d16d966c499b18e6a9708d7e579622eac 100644 (file)
@@ -16,6 +16,8 @@
    +----------------------------------------------------------------------+
 */
 
+#include "main/php.h"
+#include "main/SAPI.h"
 #include "php_version.h"
 #include <ZendAccelerator.h>
 #include "zend_shared_alloc.h"
@@ -4177,7 +4179,9 @@ ZEND_EXT_API int zend_jit_check_support(void)
        }
 
        if (zend_execute_ex != execute_ex) {
-               zend_error(E_WARNING, "JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.");
+               if (strcmp(sapi_module.name, "phpdbg") != 0) {
+                       zend_error(E_WARNING, "JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.");
+               }
                JIT_G(enabled) = 0;
                return FAILURE;
        }