Skip to content

Commit a0baa09

Browse files
committed
Hide phpdbg/JIT incompatibility macro (JIT is disabled for phpdbg)
1 parent 4643c0a commit a0baa09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19+
#include "main/php.h"
20+
#include "main/SAPI.h"
1921
#include "php_version.h"
2022
#include <ZendAccelerator.h>
2123
#include "zend_shared_alloc.h"
@@ -4177,7 +4179,9 @@ ZEND_EXT_API int zend_jit_check_support(void)
41774179
}
41784180

41794181
if (zend_execute_ex != execute_ex) {
4180-
zend_error(E_WARNING, "JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.");
4182+
if (strcmp(sapi_module.name, "phpdbg") != 0) {
4183+
zend_error(E_WARNING, "JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.");
4184+
}
41814185
JIT_G(enabled) = 0;
41824186
return FAILURE;
41834187
}

0 commit comments

Comments
 (0)