From: Xinchen Hui Date: Wed, 15 Jul 2015 02:38:23 +0000 (+0800) Subject: Fixed segfault if opcache is disabled and with file_cache X-Git-Tag: php-7.0.0beta2~6^2~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32a4507abc2331712ae4a2d921467f5afbab701c;p=php Fixed segfault if opcache is disabled and with file_cache --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index b1feb54a2c..01e9eca28f 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1068,15 +1068,6 @@ int zend_accel_invalidate(const char *filename, int filename_len, zend_bool forc zend_persistent_script *persistent_script; if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled) || accelerator_shm_read_lock() != SUCCESS) { -#ifdef HAVE_OPCACHE_FILE_CACHE - if (ZCG(accel_directives).file_cache) { - realpath = accelerator_orig_zend_resolve_path(filename, filename_len); - if (realpath) { - zend_file_cache_invalidate(realpath); - zend_string_release(realpath); - } - } -#endif return FAILURE; }