}
/* zend_resolve_path() replacement for PHP 5.3 and above */
-static zend_string* persistent_zend_resolve_path(const char *filename, int filename_len)
+static zend_string* persistent_zend_resolve_path(const char *filename, size_t filename_len)
{
- if (ZCG(enabled) && accel_startup_ok &&
+ if (
#ifdef HAVE_OPCACHE_FILE_CACHE
!file_cache_only &&
#endif
if (ZCG(root_hash) != buf.st_ino) {
zend_string *key = zend_string_init("opcache.enable", sizeof("opcache.enable")-1, 0);
zend_alter_ini_entry_chars(key, "0", 1, ZEND_INI_SYSTEM, ZEND_INI_STAGE_RUNTIME);
- zend_string_release(key);
+ zend_string_release_ex(key, 0);
zend_accel_error(ACCEL_LOG_WARNING, "Can't cache files in chroot() directory with too big inode");
+ ZCG(accelerator_enabled) = 0;
return;
}
}
*/
if (ZCG(cwd)) {
- zend_string_release(ZCG(cwd));
+ zend_string_release_ex(ZCG(cwd), 0);
ZCG(cwd) = NULL;
}
-
- if (!ZCG(enabled) || !accel_startup_ok) {
- return;
- }
}
static int accelerator_remove_cb(zend_extension *element1, zend_extension *element2)