mirror of
https://github.com/php/php-src.git
synced 2026-04-03 06:02:23 +02:00
Merge branch 'PHP-5.5'
* PHP-5.5: Avoid multiple allocations of the same key in different processes
This commit is contained in:
@@ -2587,7 +2587,9 @@ static int accel_startup(zend_extension *extension)
|
||||
ZCG(include_path_key) = NULL;
|
||||
if (ZCG(include_path) && *ZCG(include_path)) {
|
||||
ZCG(include_path_len) = strlen(ZCG(include_path));
|
||||
if (!zend_accel_hash_is_full(&ZCSG(include_paths))) {
|
||||
ZCG(include_path_key) = zend_accel_hash_find(&ZCSG(include_paths), ZCG(include_path), ZCG(include_path_len) + 1);
|
||||
if (!ZCG(include_path_key) &&
|
||||
!zend_accel_hash_is_full(&ZCSG(include_paths))) {
|
||||
char *key;
|
||||
|
||||
zend_shared_alloc_lock(TSRMLS_C);
|
||||
|
||||
Reference in New Issue
Block a user