]> granicus.if.org Git - php/commit
Rehash function table after disabling functions
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Aug 2020 14:43:22 +0000 (16:43 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 28 Aug 2020 14:50:07 +0000 (16:50 +0200)
commit2c15c9ce80b0c8779a3d5cc5ad1c3452e620d084
tree0fbbf25329c9ac7ce978efd0cfebb26de14403e2
parent138f14160569a52ffedfb789d0a8162741ec87b3
Rehash function table after disabling functions

To perform fast shutdown without full table cleanup we need all
internal functions to be in one continuous chunk. This was
violated when functions were deleted via disable_functions.

This drops the zend_disable_function() API in favor of
zend_disable_functions(), which disables the given list of
functions and performs the necessary rehash afterwards.

Also drop PG(disabled_functions), which is no longer used.
Zend/zend_API.c
Zend/zend_API.h
main/main.c
main/php_globals.h
sapi/fpm/fpm/fpm_php.c