com php-src: Fix off-by-one here: ext/opcache/zend_accelerato r_module.c

From: Date: Sun, 26 Oct 2014 23:59:17 +0000
Subject: com php-src: Fix off-by-one here: ext/opcache/zend_accelerato r_module.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82677@lists.php.net to get a copy of this message
Commit: c8e1fae17f215a71ffddf834ef8ca409dfd8e50b Author: Rasmus Lerdorf <rasmus@php.net> Sun, 26 Oct 2014 16:59:17 -0700 Parents: 8d84b1f67adb71bdb2394b62faad04b22f6226f3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c8e1fae17f215a71ffddf834ef8ca409dfd8e50b Log: Fix off-by-one here Changed paths: M ext/opcache/zend_accelerator_module.c Diff: diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module..c index 001c3ee..fcaf964 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);

« previous php.cvs (#82677) next »