diff options
author | Sammy Kaye Powers <sammyk@php.net> | 2020-07-16 16:31:10 -0700 |
---|---|---|
committer | Sammy Kaye Powers <sammyk@php.net> | 2020-09-18 14:26:44 -0700 |
commit | 12306728c5f37dc371bc39f5fe2bf8e928368235 (patch) | |
tree | eed1bf4671bc1c46e6a8e7a30b07bd4e9a7bc1d2 /ext/opcache/Optimizer | |
parent | 30bb15b24a266eae1577b68cd980241b1a5adf40 (diff) | |
download | php-git-12306728c5f37dc371bc39f5fe2bf8e928368235.tar.gz |
Add system ID entropy API
The `zend_system_id` is a (true global) system ID that fingerprints a process state. When extensions add engine hooks during MINIT/startup, entropy is added the system ID for each hook. This allows extensions to identify that changes have been made to the engine since the last PHP process restart.
Closes GH-5871
Diffstat (limited to 'ext/opcache/Optimizer')
-rw-r--r-- | ext/opcache/Optimizer/zend_func_info.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index edbc068dda..6b8cb33f56 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -942,11 +942,10 @@ uint32_t zend_get_func_info( int zend_func_info_startup(void) { - zend_extension dummy; size_t i; if (zend_func_info_rid == -1) { - zend_func_info_rid = zend_get_resource_handle(&dummy); + zend_func_info_rid = zend_get_resource_handle("Zend Optimizer"); if (zend_func_info_rid < 0) { return FAILURE; } |