diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2014-10-26 16:59:17 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2014-10-26 16:59:17 -0700 |
commit | c8e1fae17f215a71ffddf834ef8ca409dfd8e50b (patch) | |
tree | 0ea15518bac7c8a58a0474803083f478e528d409 | |
parent | 8d84b1f67adb71bdb2394b62faad04b22f6226f3 (diff) | |
download | php-git-c8e1fae17f215a71ffddf834ef8ca409dfd8e50b.tar.gz |
Fix off-by-one here
-rw-r--r-- | ext/opcache/zend_accelerator_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |