From: Michael Wallner Date: Wed, 24 Oct 2018 09:55:10 +0000 (+0200) Subject: fix zend_constant flags handling X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=682b684daaa140de059da4a060098b8a6c0a439e;p=m6w6%2Fext-psi fix zend_constant flags handling --- diff --git a/src/context.c b/src/context.c index 449f98e..46210f0 100644 --- a/src/context.c +++ b/src/context.c @@ -168,8 +168,7 @@ zend_function_entry *psi_context_compile(struct psi_context *C) { zend_constant zc; - zc.flags = CONST_PERSISTENT|CONST_CS; - zc.module_number = EG(current_module)->module_number; + ZEND_CONSTANT_SET_FLAGS(&zc, CONST_CS|CONST_PERSISTENT, EG(current_module)->module_number); if (C->consts) { size_t i = 0;