mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Moved ZCG(function_table) back into accel_acrivate. It should be unique per thread.
This commit is contained in:
parent
b4903aef16
commit
e87e62cc6f
1 changed files with 5 additions and 3 deletions
|
@ -2140,6 +2140,11 @@ static void accel_activate(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ZCG(function_table).nTableSize) {
|
||||||
|
zend_hash_init(&ZCG(function_table), zend_hash_num_elements(CG(function_table)), NULL, ZEND_FUNCTION_DTOR, 1);
|
||||||
|
zend_accel_copy_internal_functions();
|
||||||
|
}
|
||||||
|
|
||||||
/* PHP-5.4 and above return "double", but we use 1 sec precision */
|
/* PHP-5.4 and above return "double", but we use 1 sec precision */
|
||||||
ZCG(auto_globals_mask) = 0;
|
ZCG(auto_globals_mask) = 0;
|
||||||
ZCG(request_time) = (time_t)sapi_get_request_time();
|
ZCG(request_time) = (time_t)sapi_get_request_time();
|
||||||
|
@ -2628,9 +2633,6 @@ static int accel_post_startup(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
zend_hash_init(&ZCG(function_table), zend_hash_num_elements(CG(function_table)), NULL, ZEND_FUNCTION_DTOR, 1);
|
|
||||||
zend_accel_copy_internal_functions();
|
|
||||||
|
|
||||||
/********************************************/
|
/********************************************/
|
||||||
/* End of non-SHM dependent initializations */
|
/* End of non-SHM dependent initializations */
|
||||||
/********************************************/
|
/********************************************/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue