From: Nikita Popov Date: Mon, 27 Jul 2020 13:56:49 +0000 (+0200) Subject: Automatically enable DASM_CHECKS in debug mode X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4c30ff99b81588abefbf879524b9eb236a000bd;p=php Automatically enable DASM_CHECKS in debug mode --- diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index 48647be057..4e7929662a 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -73,6 +73,10 @@ zend_jit_globals jit_globals; #define DASM_M_FREE(ctx, p, sz) efree(p) +#if ZEND_DEBUG +# define DASM_CHECKS 1 +#endif + #include "dynasm/dasm_proto.h" typedef struct _zend_jit_stub {