]> granicus.if.org Git - php/commitdiff
Fixed segfault if opcache is disabled and with file_cache
authorXinchen Hui <laruence@php.net>
Wed, 15 Jul 2015 02:38:23 +0000 (10:38 +0800)
committerXinchen Hui <laruence@php.net>
Wed, 15 Jul 2015 02:38:23 +0000 (10:38 +0800)
ext/opcache/ZendAccelerator.c

index b1feb54a2c3c7f53138d21c0fac40b8fc37a4288..01e9eca28f66a4c4040adc0519a4255bb30f6b3d 100644 (file)
@@ -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;
        }