From: Dmitry Stogov Date: Mon, 9 Sep 2013 06:05:59 +0000 (+0400) Subject: Fixed issue #128 (opcache_invalidate segmentation fault) X-Git-Tag: php-5.5.4~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d860c121810d6a10380241a0a51387966a503ca;p=php Fixed issue #128 (opcache_invalidate segmentation fault) --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index b5474c0507..827f047cd4 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1062,6 +1062,10 @@ int zend_accel_invalidate(const char *filename, int filename_len, zend_bool forc realpath = accelerator_orig_zend_resolve_path(filename, filename_len TSRMLS_CC); #endif + if (!realpath) { + return FAILURE; + } + persistent_script = zend_accel_hash_find(&ZCSG(hash), realpath, strlen(realpath) + 1); if (persistent_script && !persistent_script->corrupted) { zend_file_handle file_handle;