diff options
author | Xinchen Hui <laruence@php.net> | 2015-07-15 10:38:23 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-07-15 10:38:23 +0800 |
commit | 32a4507abc2331712ae4a2d921467f5afbab701c (patch) | |
tree | a2a0c8fde7ce23f9b82a28eafedfbf7948abbdd5 | |
parent | 453ec91dfe0ce53e1867241625958f27fbee17d2 (diff) | |
download | php-git-32a4507abc2331712ae4a2d921467f5afbab701c.tar.gz |
Fixed segfault if opcache is disabled and with file_cache
-rw-r--r-- | ext/opcache/ZendAccelerator.c | 9 |
1 files changed, 0 insertions, 9 deletions
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; } |