We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e13b014 commit 772edadCopy full SHA for 772edad
Zend/zend_system_id.c
@@ -18,6 +18,7 @@
18
#include "php.h"
19
#include "zend_system_id.h"
20
#include "zend_extensions.h"
21
+#include "zend_observer.h"
22
#include "ext/standard/md5.h"
23
#include "ext/hash/php_hash.h"
24
@@ -59,6 +60,7 @@ void zend_startup_system_id(void)
59
60
#define ZEND_HOOK_COMPILE_FILE (1 << 1)
61
#define ZEND_HOOK_EXECUTE_EX (1 << 2)
62
#define ZEND_HOOK_EXECUTE_INTERNAL (1 << 3)
63
+#define ZEND_HOOK_OBSERVER (1 << 4)
64
65
void zend_finalize_system_id(void)
66
{
@@ -78,6 +80,9 @@ void zend_finalize_system_id(void)
78
80
if (zend_execute_internal) {
79
81
hooks |= ZEND_HOOK_EXECUTE_INTERNAL;
82
}
83
+ if (ZEND_OBSERVER_ENABLED) {
84
+ hooks |= ZEND_HOOK_OBSERVER;
85
+ }
86
PHP_MD5Update(&context, &hooks, sizeof(zend_uchar));
87
88
for (; i < 256; i++) {
0 commit comments