projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
7965918
)
fix zend_constant flags handling
author
Michael Wallner
<mike@php.net>
Wed, 24 Oct 2018 09:55:10 +0000
(11:55 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 24 Oct 2018 09:55:10 +0000
(11:55 +0200)
src/context.c
patch
|
blob
|
history
diff --git
a/src/context.c
b/src/context.c
index 449f98eef5699101aad1d4bb80eaadc52e612989..46210f0659e2ce991cac079319e49d0f8001b894 100644
(file)
--- 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;