From 682b684daaa140de059da4a060098b8a6c0a439e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 24 Oct 2018 11:55:10 +0200 Subject: [PATCH] fix zend_constant flags handling --- src/context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.30.2