@@ -737,17 +737,6 @@ static PHP_INI_MH(OnChangeMailForceExtra)
737
737
}
738
738
/* }}} */
739
739
740
- /* Emit warning when using this INI setting as it is removed */
741
- static PHP_INI_MH (OnChangeDisableClasses )
742
- {
743
- if (stage != PHP_INI_SYSTEM ) {
744
- return FAILURE ;
745
- }
746
- php_error_docref ("disable_classes" , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
747
-
748
- return FAILURE ;
749
- }
750
-
751
740
/* defined in browscap.c */
752
741
PHP_INI_MH (OnChangeBrowscap );
753
742
@@ -848,7 +837,6 @@ PHP_INI_BEGIN()
848
837
PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
849
838
PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
850
839
PHP_INI_ENTRY ("disable_functions" , "" , PHP_INI_SYSTEM , NULL )
851
- PHP_INI_ENTRY ("disable_classes" , "" , PHP_INI_SYSTEM , OnChangeDisableClasses )
852
840
PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
853
841
PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
854
842
@@ -2375,7 +2363,7 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
2375
2363
struct {
2376
2364
const long error_level ;
2377
2365
const char * phrase ;
2378
- const char * directives [18 ]; /* Remember to change this if the number of directives change */
2366
+ const char * directives [19 ]; /* Remember to change this if the number of directives change */
2379
2367
} directives [2 ] = {
2380
2368
{
2381
2369
E_DEPRECATED ,
@@ -2406,6 +2394,7 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
2406
2394
"safe_mode_protected_env_vars" ,
2407
2395
"zend.ze1_compatibility_mode" ,
2408
2396
"track_errors" ,
2397
+ "disable_classes" ,
2409
2398
NULL
2410
2399
}
2411
2400
}
0 commit comments