]> granicus.if.org Git - php/commitdiff
Fix off-by-one here
authorRasmus Lerdorf <rasmus@php.net>
Sun, 26 Oct 2014 23:59:17 +0000 (16:59 -0700)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 26 Oct 2014 23:59:17 +0000 (16:59 -0700)
ext/opcache/zend_accelerator_module.c

index 001c3ee9ed2a25bb6e62766db4be331ccbd570af..fcaf96408c9b37ed171f38d9e0f2cce768d8fc8d 100644 (file)
@@ -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);