if (!ZCG(counted)) {
if (!ZCG(accelerator_enabled) || accel_activate_add() == FAILURE) {
- return str;
+ return NULL;
}
ZCG(counted) = 1;
}
if (ZCSG(interned_strings_saved_top) == NULL) {
accel_copy_permanent_strings(accel_new_interned_string);
} else {
+ ZCG(counted) = 1;
accel_copy_permanent_strings(accel_replace_string_by_shm_permanent);
- if (ZCG(counted)) {
- accel_deactivate_sub();
- }
+ ZCG(counted) = 0;
}
accel_interned_strings_save_state();
cwd_len = ZCG(cwd_key_len) = buf + sizeof(buf) - 1 - res;
cwd = ZCG(cwd_key);
memcpy(ZCG(cwd_key), res, cwd_len + 1);
+ } else {
+ return NULL;
}
+ } else {
+ return NULL;
}
}
}
include_path_len = ZCG(include_path_key_len) = buf + sizeof(buf) - 1 - res;
include_path = ZCG(include_path_key);
memcpy(ZCG(include_path_key), res, include_path_len + 1);
+ } else {
+ return NULL;
}
+ } else {
+ return NULL;
}
}
}
static void accel_activate(void)
{
if (!ZCG(enabled) || !accel_startup_ok) {
+ ZCG(accelerator_enabled) = 0;
return;
}
#ifdef HAVE_OPCACHE_FILE_CACHE
if (file_cache_only) {
+ ZCG(accelerator_enabled) = 0;
return;
}
#endif