diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-26 15:53:49 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-28 10:38:25 +0100 |
| commit | 83be073abe665a219041ca1f54b6578b75643971 (patch) | |
| tree | dd92e86fc1f77033c5afa860e6dfb261b02c3abd /Zend/zend.c | |
| parent | ac561f2c255e4786db4f0726d47f0e84100cd2ea (diff) | |
| download | php-git-83be073abe665a219041ca1f54b6578b75643971.tar.gz | |
Move optimizer into core
This only moves the files, adjusts the build system, exports APIs
and does minor fixups to make sure the code builds.
This does not yet try to make the optimizer usable independently
of opcache.
Closes GH-6642.
Diffstat (limited to 'Zend/zend.c')
| -rw-r--r-- | Zend/zend.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 22cdc744e6..4da7991db6 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -34,6 +34,7 @@ #include "zend_cpuinfo.h" #include "zend_attributes.h" #include "zend_observer.h" +#include "Optimizer/zend_optimizer.h" static size_t global_map_ptr_last = 0; @@ -953,6 +954,8 @@ void zend_startup(zend_utility_functions *utility_functions) /* {{{ */ php_win32_cp_setup(); #endif + zend_optimizer_startup(); + #ifdef ZTS tsrm_set_new_thread_end_handler(zend_new_thread_end_handler); tsrm_set_shutdown_handler(zend_interned_strings_dtor); @@ -1112,6 +1115,8 @@ void zend_shutdown(void) /* {{{ */ } #endif zend_destroy_rsrc_list_dtors(); + + zend_optimizer_shutdown(); } /* }}} */ |
