From: Rasmus Lerdorf Date: Sun, 26 Oct 2014 23:59:17 +0000 (-0700) Subject: Fix off-by-one here X-Git-Tag: PRE_PHP7_REMOVALS~87^2~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8e1fae17f215a71ffddf834ef8ca409dfd8e50b;p=php Fix off-by-one here --- diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 001c3ee9ed..fcaf96408c 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -499,7 +499,7 @@ static int accelerator_get_scripts(zval *return_value TSRMLS_DC) timerclear(&exec_time); timerclear(&fetch_time); - zend_hash_str_update(Z_ARRVAL_P(return_value), cache_entry->key, cache_entry->key_length-1, &persistent_script_report); + zend_hash_str_update(Z_ARRVAL_P(return_value), cache_entry->key, cache_entry->key_length, &persistent_script_report); } } accelerator_shm_read_unlock(TSRMLS_C);