File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 29
29
#include "phpdbg_print.h"
30
30
#include "phpdbg_help.h"
31
31
#include "phpdbg_arginfo.h"
32
+ #include "zend_vm.h"
32
33
33
34
#include "ext/standard/basic_functions.h"
34
35
@@ -273,6 +274,17 @@ static PHP_RINIT_FUNCTION(phpdbg) /* {{{ */
273
274
/* deactivate symbol table caching to have these properly destroyed upon stack leaving (especially important for watchpoints) */
274
275
EG (symtable_cache_limit ) = EG (symtable_cache );
275
276
277
+ if (zend_vm_kind () != ZEND_VM_KIND_HYBRID ) {
278
+ /* phpdbg cannot work JIT-ed code */
279
+ zend_string * key = zend_string_init (ZEND_STRL ("opcache.jit" ), 1 );
280
+ zend_string * value = zend_string_init (ZEND_STRL ("off" ), 1 );
281
+
282
+ zend_alter_ini_entry (key , value , ZEND_INI_SYSTEM , ZEND_INI_STAGE_STARTUP );
283
+
284
+ zend_string_release (key );
285
+ zend_string_release (value );
286
+ }
287
+
276
288
return SUCCESS ;
277
289
} /* }}} */
278
290
You can’t perform that action at this time.
0 commit comments