@@ -129,19 +129,6 @@ static ZEND_INI_MH(OnUpdateMaxWastedPercentage)
129
129
return SUCCESS ;
130
130
}
131
131
132
- static ZEND_INI_MH (OnUpdateConsistencyChecks )
133
- {
134
- zend_long * p = (zend_long * ) ZEND_INI_GET_ADDR ();
135
- zend_long consistency_checks = atoi (ZSTR_VAL (new_value ));
136
-
137
- if (consistency_checks != 0 ) {
138
- zend_accel_error (ACCEL_LOG_WARNING , "opcache.consistency_checks is reset back to 0 because it does not work properly (see GH-8065, GH-10624).\n" );
139
- return FAILURE ;
140
- }
141
- * p = 0 ;
142
- return SUCCESS ;
143
- }
144
-
145
132
static ZEND_INI_MH (OnEnable )
146
133
{
147
134
if (stage == ZEND_INI_STAGE_STARTUP ||
@@ -289,7 +276,6 @@ ZEND_INI_BEGIN()
289
276
STD_PHP_INI_ENTRY ("opcache.interned_strings_buffer" , "8" , PHP_INI_SYSTEM , OnUpdateInternedStringsBuffer , accel_directives .interned_strings_buffer , zend_accel_globals , accel_globals )
290
277
STD_PHP_INI_ENTRY ("opcache.max_accelerated_files" , "10000" , PHP_INI_SYSTEM , OnUpdateMaxAcceleratedFiles , accel_directives .max_accelerated_files , zend_accel_globals , accel_globals )
291
278
STD_PHP_INI_ENTRY ("opcache.max_wasted_percentage" , "5" , PHP_INI_SYSTEM , OnUpdateMaxWastedPercentage , accel_directives .max_wasted_percentage , zend_accel_globals , accel_globals )
292
- STD_PHP_INI_ENTRY ("opcache.consistency_checks" , "0" , PHP_INI_ALL , OnUpdateConsistencyChecks , accel_directives .consistency_checks , zend_accel_globals , accel_globals )
293
279
STD_PHP_INI_ENTRY ("opcache.force_restart_timeout" , "180" , PHP_INI_SYSTEM , OnUpdateLong , accel_directives .force_restart_timeout , zend_accel_globals , accel_globals )
294
280
STD_PHP_INI_ENTRY ("opcache.revalidate_freq" , "2" , PHP_INI_ALL , OnUpdateLong , accel_directives .revalidate_freq , zend_accel_globals , accel_globals )
295
281
STD_PHP_INI_ENTRY ("opcache.file_update_protection" , "2" , PHP_INI_ALL , OnUpdateLong , accel_directives .file_update_protection , zend_accel_globals , accel_globals )
@@ -804,7 +790,6 @@ ZEND_FUNCTION(opcache_get_configuration)
804
790
add_assoc_long (& directives , "opcache.interned_strings_buffer" ,ZCG (accel_directives ).interned_strings_buffer );
805
791
add_assoc_long (& directives , "opcache.max_accelerated_files" , ZCG (accel_directives ).max_accelerated_files );
806
792
add_assoc_double (& directives , "opcache.max_wasted_percentage" , ZCG (accel_directives ).max_wasted_percentage );
807
- add_assoc_long (& directives , "opcache.consistency_checks" , ZCG (accel_directives ).consistency_checks );
808
793
add_assoc_long (& directives , "opcache.force_restart_timeout" , ZCG (accel_directives ).force_restart_timeout );
809
794
add_assoc_long (& directives , "opcache.revalidate_freq" , ZCG (accel_directives ).revalidate_freq );
810
795
add_assoc_string (& directives , "opcache.preferred_memory_model" , STRING_NOT_NULL (ZCG (accel_directives ).memory_model ));
0 commit comments