This ini directive has already been ignored since PHP 5.3.
- 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
========================================
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.
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
#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)
#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);
; passes
;opcache.optimization_level=0xffffffff
-;opcache.inherited_hack=1
;opcache.dups_fix=0
; The location of the OPcache blacklist file (wildcards allowed).
; passes
;opcache.optimization_level=0xffffffff
-;opcache.inherited_hack=1
;opcache.dups_fix=0
; The location of the OPcache blacklist file (wildcards allowed).