Skip to content

Commit

Permalink
Optimization INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
yulonghu committed Mar 30, 2019
1 parent 7f63c9e commit 2fed643
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
8 changes: 0 additions & 8 deletions asf/asf.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ PHP_MSHUTDOWN_FUNCTION(asf)
*/
PHP_RINIT_FUNCTION(asf)
{
#if defined(COMPILE_DL_ASF) && defined(ZTS)
ZEND_TSRMLS_CACHE_UPDATE();
#endif

/* globals var */
ASF_G(default_module) = zend_string_init(ASF_API_NAME, ASF_API_LEN, 0);
ASF_G(default_service) = zend_string_init("index", sizeof("index") - 1, 0);
Expand Down Expand Up @@ -261,7 +257,6 @@ PHP_MINFO_FUNCTION(asf)
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
php_info_print_table_end();

/* Remove comments if you have entries in php.ini */
DISPLAY_INI_ENTRIES();
}
/* }}} */
Expand Down Expand Up @@ -294,9 +289,6 @@ zend_module_entry asf_module_entry = {
/* }}} */

#ifdef COMPILE_DL_ASF
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE()
#endif
ZEND_GET_MODULE(asf)
#endif

Expand Down
2 changes: 0 additions & 2 deletions asf/asf_sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ static int asf_sg_strtok_del(HashTable *ht, zend_string *key) /* {{{ */
return zend_symtable_del(ht, key);
}/*}}}*/



void asf_sg_instance() /* {{{ */
{
zval regs;
Expand Down
2 changes: 1 addition & 1 deletion asf/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ if test "$PHP_ASF" != "no"; then
cache/asf_cache_abstractadapter.c \
cache/adapter/asf_cache_adapter_redis.c \
cache/adapter/asf_cache_adapter_memcached.c \
, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
, $ext_shared)
fi
4 changes: 0 additions & 4 deletions asf/php_asf.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ ZEND_END_MODULE_GLOBALS(asf)

extern ZEND_DECLARE_MODULE_GLOBALS(asf);

#if defined(ZTS) && defined(COMPILE_DL_ASF)
ZEND_TSRMLS_CACHE_EXTERN()
#endif

#endif /* PHP_ASF_H */

/*
Expand Down

0 comments on commit 2fed643

Please sign in to comment.