diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-06-22 01:45:28 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-22 01:45:28 +0300 |
commit | f25ecdacf805f840f743b67b6d84485b2deceb4f (patch) | |
tree | f8f6c7606287b952dcdf51e2ee9f528606bb9a2c /Zend/zend_constants.c | |
parent | 9fb0e6ffe29cc37b6b84a093d7438f0453cc1c41 (diff) | |
download | php-git-f25ecdacf805f840f743b67b6d84485b2deceb4f.tar.gz |
shutdown_executor() refactoring (reuse opcache fast request shutdown code)
Diffstat (limited to 'Zend/zend_constants.c')
-rw-r--r-- | Zend/zend_constants.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c index 77124fcf12..4d128c4843 100644 --- a/Zend/zend_constants.c +++ b/Zend/zend_constants.c @@ -69,20 +69,6 @@ void zend_copy_constants(HashTable *target, HashTable *source) } -static int clean_non_persistent_constant(zval *zv) -{ - zend_constant *c = Z_PTR_P(zv); - return (c->flags & CONST_PERSISTENT) ? ZEND_HASH_APPLY_STOP : ZEND_HASH_APPLY_REMOVE; -} - - -static int clean_non_persistent_constant_full(zval *zv) -{ - zend_constant *c = Z_PTR_P(zv); - return (c->flags & CONST_PERSISTENT) ? 0 : 1; -} - - static int clean_module_constant(zval *el, void *arg) { zend_constant *c = (zend_constant *)Z_PTR_P(el); @@ -152,16 +138,6 @@ int zend_shutdown_constants(void) return SUCCESS; } - -void clean_non_persistent_constants(void) -{ - if (EG(full_tables_cleanup)) { - zend_hash_apply(EG(zend_constants), clean_non_persistent_constant_full); - } else { - zend_hash_reverse_apply(EG(zend_constants), clean_non_persistent_constant); - } -} - ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_number) { zend_constant c; |