@@ -737,17 +737,6 @@ static PHP_INI_MH(OnChangeMailForceExtra)
737737}
738738/* }}} */
739739
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-
751740/* defined in browscap.c */
752741PHP_INI_MH (OnChangeBrowscap );
753742
@@ -848,7 +837,6 @@ PHP_INI_BEGIN()
848837 PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
849838 PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
850839 PHP_INI_ENTRY ("disable_functions" , "" , PHP_INI_SYSTEM , NULL )
851- PHP_INI_ENTRY ("disable_classes" , "" , PHP_INI_SYSTEM , OnChangeDisableClasses )
852840 PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
853841 PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
854842
@@ -2375,7 +2363,7 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
23752363 struct {
23762364 const long error_level ;
23772365 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 */
23792367 } directives [2 ] = {
23802368 {
23812369 E_DEPRECATED ,
@@ -2406,6 +2394,7 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
24062394 "safe_mode_protected_env_vars" ,
24072395 "zend.ze1_compatibility_mode" ,
24082396 "track_errors" ,
2397+ "disable_classes" ,
24092398 NULL
24102399 }
24112400 }
0 commit comments