com php-src: Drop useless zend_accel_script_persistable () function: ext/opcache/ZendAccelerator.c ext/op cache/zend_persist.c
ext/opcache/zend_persist.h

From: Date: Fri, 17 Jul 2020 15:00:42 +0000
Subject: com php-src: Drop useless zend_accel_script_persistable () function: ext/opcache/ZendAccelerator.c ext/op cache/zend_persist.c
ext/opcache/zend_persist.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112215@lists.php.net to get a copy of this message
Commit: a1fee87c9a8a6ed58f2a8270c0a9e61a674d32db Author: George Peter Banyard <girgias@php.net> Thu, 16 Jul 2020 21:07:01 +0200 Parents: fa60f57be44a98b1b06218588fe0cc0ee5939bb2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a1fee87c9a8a6ed58f2a8270c0a9e61a674d32db Log: Drop useless zend_accel_script_persistable() function Changed paths: M ext/opcache/ZendAccelerator.c M ext/opcache/zend_persist.c M ext/opcache/zend_persist.h Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 120ba00289..6f3ff1cead 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1415,11 +1415,6 @@ static zend_persistent_script *cache_script_in_file_cache(zend_persistent_script { uint32_t orig_compiler_options; - /* Check if script may be stored in shared memory */ - if (!zend_accel_script_persistable(new_persistent_script)) { - return new_persistent_script; - } - orig_compiler_options = CG(compiler_options); CG(compiler_options) |= ZEND_COMPILE_WITH_FILE_CACHE; if (!zend_optimize_script(&new_persistent_script->script, ZCG(accel_directives).optimization_level, ZCG(accel_directives).opt_debug_level)) { @@ -1438,11 +1433,6 @@ static zend_persistent_script *cache_script_in_shared_memory(zend_persistent_scr uint32_t memory_used; uint32_t orig_compiler_options; - /* Check if script may be stored in shared memory */ - if (!zend_accel_script_persistable(new_persistent_script)) { - return new_persistent_script; - } - orig_compiler_options = CG(compiler_options); if (ZCG(accel_directives).file_cache) { CG(compiler_options) |= ZEND_COMPILE_WITH_FILE_CACHE; diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index f4400b07d4..1b2db5f69a 100644 --- a/ext/opcache/zend_persist.c +++ b/ext/opcache/zend_persist.c @@ -1241,8 +1241,3 @@ zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script return script; } - -int zend_accel_script_persistable(zend_persistent_script *script) -{ - return 1; -} diff --git a/ext/opcache/zend_persist.h b/ext/opcache/zend_persist.h index 78b6b0f6d9..d5eca3f195 100644 --- a/ext/opcache/zend_persist.h +++ b/ext/opcache/zend_persist.h @@ -22,7 +22,6 @@ #ifndef ZEND_PERSIST_H #define ZEND_PERSIST_H -int zend_accel_script_persistable(zend_persistent_script *script); uint32_t zend_accel_script_persist_calc(zend_persistent_script *script, const char *key, unsigned int key_length, int for_shm); zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, const char **key, unsigned int key_length, int for_shm);

« previous php.cvs (#112215) next »