Skip to content

Commit 2e07b63

Browse files
committed
Add entropy for zend_ast_process
1 parent d977a7e commit 2e07b63

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Zend/zend_system_id.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,19 @@ void zend_startup_system_id(void)
5555
zend_system_id[0] = '\0';
5656
}
5757

58-
#define ZEND_HOOK_COMPILE_FILE (1 << 0)
59-
#define ZEND_HOOK_EXECUTE_EX (1 << 1)
60-
#define ZEND_HOOK_EXECUTE_INTERNAL (1 << 2)
58+
#define ZEND_HOOK_AST_PROCESS (1 << 0)
59+
#define ZEND_HOOK_COMPILE_FILE (1 << 1)
60+
#define ZEND_HOOK_EXECUTE_EX (1 << 2)
61+
#define ZEND_HOOK_EXECUTE_INTERNAL (1 << 3)
6162

6263
void zend_finalize_system_id(void)
6364
{
6465
unsigned char digest[16];
6566
zend_long hooks = 0;
6667

68+
if (zend_ast_process) {
69+
hooks |= ZEND_HOOK_AST_PROCESS;
70+
}
6771
if (zend_compile_file != compile_file) {
6872
hooks |= ZEND_HOOK_COMPILE_FILE;
6973
}

0 commit comments

Comments
 (0)