]> granicus.if.org Git - php/commitdiff
Remove opcache.inherited_hack
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Dec 2017 20:57:23 +0000 (21:57 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 18 Dec 2017 21:00:54 +0000 (22:00 +0100)
This ini directive has already been ignored since PHP 5.3.

UPGRADING
ext/opcache/README
ext/opcache/ZendAccelerator.h
ext/opcache/zend_accelerator_module.c
php.ini-development
php.ini-production

index 695177e0c8015797ae43bc1405620e978f3843ed..856914e065988ff0f34ecc5711058f867051db0d 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -160,6 +160,10 @@ PGSQL:
 - birdstep.max_links
   . This INI directive has been removed.
 
+- opcache.inherited_hack
+  . This INI directive has been removed. The value has already been ignored
+    since PHP 5.3.0.
+
 ========================================
 12. Windows Support
 ========================================
index 6f07f7ee582178a7586efdb77895ce07136c04f1..936d6456c4103765dc1aade13010d72e74c04de7 100644 (file)
@@ -143,19 +143,6 @@ opcache.optimization_level (default "0xffffffff")
        A bitmask, where each bit enables or disables the appropriate OPcache
        passes
 
-opcache.inherited_hack (default "1")
-       Enable this hack as a workaround for "Cannot redeclare class" errors.
-       The OPcache stores the places where DECLARE_CLASS opcodes use
-       inheritance (These are the only opcodes that can be executed by PHP,
-       but which may not be executed because the parent class is missing due to
-       optimization). When the file is loaded, OPcache tries to bind the
-       inherited classes by using the current environment. The problem with this
-       scenario is that, while the DECLARE_CLASS opcode may not be needed for the
-       current script, if the script requires that the opcode at least be defined,
-       it may not run. The default for this directive is disabled, which means
-       that optimization is active. In php-5.3 and above this hack is not needed
-       anymore and this setting has no effect.
-
 opcache.dups_fix (default "0")
        Enable this hack as a workaround for "Cannot redeclare class" errors.
 
index 84157b7c1bee5244d228510c7301cc4ef590b422..3183e58ee1ced544cb4674931d4b0dfc08991e12 100644 (file)
@@ -177,7 +177,6 @@ typedef struct _zend_accel_directives {
        zend_bool      save_comments;
        zend_bool      protect_memory;
        zend_bool      file_override_enabled;
-       zend_bool      inherited_hack;
        zend_bool      enable_cli;
        zend_bool      validate_permission;
 #ifndef ZEND_WIN32
index de3e4c9ec03da6be8097280ca59ac411ac9c5e8f..a1af5d1b9d6cf727ce4ad208463dbc96b88ace91 100644 (file)
@@ -280,7 +280,6 @@ ZEND_INI_BEGIN()
 #ifndef ZEND_WIN32
        STD_PHP_INI_BOOLEAN("opcache.validate_root"      , "0", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.validate_root      , zend_accel_globals, accel_globals)
 #endif
-       STD_PHP_INI_BOOLEAN("opcache.inherited_hack"     , "1", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.inherited_hack     , zend_accel_globals, accel_globals)
        STD_PHP_INI_BOOLEAN("opcache.dups_fix"           , "0", PHP_INI_ALL   , OnUpdateBool, accel_directives.ignore_dups        , zend_accel_globals, accel_globals)
        STD_PHP_INI_BOOLEAN("opcache.revalidate_path"    , "0", PHP_INI_ALL   , OnUpdateBool, accel_directives.revalidate_path    , zend_accel_globals, accel_globals)
 
@@ -702,7 +701,6 @@ static ZEND_FUNCTION(opcache_get_configuration)
 #ifndef ZEND_WIN32
        add_assoc_bool(&directives, "opcache.validate_root",       ZCG(accel_directives).validate_root);
 #endif
-       add_assoc_bool(&directives, "opcache.inherited_hack",      ZCG(accel_directives).inherited_hack);
        add_assoc_bool(&directives, "opcache.dups_fix",            ZCG(accel_directives).ignore_dups);
        add_assoc_bool(&directives, "opcache.revalidate_path",     ZCG(accel_directives).revalidate_path);
 
index 5272fd882087aa149737f4432dcca08aa6a6ed86..47c50560586a59966dc1a1c38336c4fecc4c4c0a 100644 (file)
@@ -1784,7 +1784,6 @@ ldap.max_links = -1
 ; passes
 ;opcache.optimization_level=0xffffffff
 
-;opcache.inherited_hack=1
 ;opcache.dups_fix=0
 
 ; The location of the OPcache blacklist file (wildcards allowed).
index e2707e0db3a659253d4ad382a38c1a0b47c5fedd..0f171fa72d4db1babe878027e95172863929c6fa 100644 (file)
@@ -1791,7 +1791,6 @@ ldap.max_links = -1
 ; passes
 ;opcache.optimization_level=0xffffffff
 
-;opcache.inherited_hack=1
 ;opcache.dups_fix=0
 
 ; The location of the OPcache blacklist file (wildcards allowed).