fix zend_constant flags handling
authorMichael Wallner <mike@php.net>
Wed, 24 Oct 2018 09:55:10 +0000 (11:55 +0200)
committerMichael Wallner <mike@php.net>
Wed, 24 Oct 2018 09:55:10 +0000 (11:55 +0200)
src/context.c

index 449f98eef5699101aad1d4bb80eaadc52e612989..46210f0659e2ce991cac079319e49d0f8001b894 100644 (file)
@@ -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;