mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
fix zend signal and tsrm compat
This commit is contained in:
@@ -755,10 +755,6 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions) /
|
||||
tsrm_set_new_thread_end_handler(zend_new_thread_end_handler);
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@@ -455,6 +455,11 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp
|
||||
(void)ts_resource(0);
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
sapi_startup(&apache2_sapi_module);
|
||||
apache2_sapi_module.startup(&apache2_sapi_module);
|
||||
apr_pool_cleanup_register(pconf, NULL, php_apache_server_shutdown, apr_pool_cleanup_null);
|
||||
|
||||
@@ -1773,6 +1773,10 @@ int main(int argc, char *argv[])
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
#ifdef ZTS
|
||||
ts_allocate_id(&php_cgi_globals_id, sizeof(php_cgi_globals_struct), (ts_allocate_ctor) php_cgi_globals_ctor, NULL);
|
||||
#else
|
||||
|
||||
@@ -1220,6 +1220,10 @@ int main(int argc, char *argv[])
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||
|
||||
@@ -177,6 +177,10 @@ EMBED_SAPI_API int php_embed_init(int argc, char **argv)
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
sapi_startup(&php_embed_module);
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
|
||||
@@ -1589,6 +1589,10 @@ int main(int argc, char *argv[])
|
||||
tsrm_ls = ts_resource(0);
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
sapi_startup(&cgi_sapi_module);
|
||||
cgi_sapi_module.php_ini_path_override = NULL;
|
||||
cgi_sapi_module.php_ini_ignore_cwd = 1;
|
||||
|
||||
@@ -1005,6 +1005,10 @@ int main( int argc, char * argv[] )
|
||||
tsrm_startup(1, 1, 0, NULL);
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
if (argc > 1 ) {
|
||||
if ( parse_opt( argc, argv, &climode,
|
||||
&php_ini_path, &php_bind ) == -1 ) {
|
||||
|
||||
@@ -1332,6 +1332,10 @@ int main(int argc, char **argv) /* {{{ */
|
||||
tsrm_ls = ts_resource(0);
|
||||
#endif
|
||||
|
||||
#ifdef ZEND_SIGNALS
|
||||
zend_signal_startup();
|
||||
#endif
|
||||
|
||||
phpdbg_main:
|
||||
ini_entries = NULL;
|
||||
ini_entries_len = 0;
|
||||
|
||||
Reference in New Issue
Block a user