File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 18
18
#include "php.h"
19
19
#include "zend_system_id.h"
20
20
#include "zend_extensions.h"
21
+ #include "zend_observer.h"
21
22
#include "ext/standard/md5.h"
22
23
#include "ext/hash/php_hash.h"
23
24
@@ -59,6 +60,7 @@ void zend_startup_system_id(void)
59
60
#define ZEND_HOOK_COMPILE_FILE (1 << 1)
60
61
#define ZEND_HOOK_EXECUTE_EX (1 << 2)
61
62
#define ZEND_HOOK_EXECUTE_INTERNAL (1 << 3)
63
+ #define ZEND_HOOK_OBSERVER (1 << 4)
62
64
63
65
void zend_finalize_system_id (void )
64
66
{
@@ -78,6 +80,9 @@ void zend_finalize_system_id(void)
78
80
if (zend_execute_internal ) {
79
81
hooks |= ZEND_HOOK_EXECUTE_INTERNAL ;
80
82
}
83
+ if (ZEND_OBSERVER_ENABLED ) {
84
+ hooks |= ZEND_HOOK_OBSERVER ;
85
+ }
81
86
PHP_MD5Update (& context , & hooks , sizeof (zend_uchar ));
82
87
83
88
for (; i < 256 ; i ++ ) {
You can’t perform that action at this time.
0 commit comments