@@ -631,9 +631,9 @@ static PHP_INI_MH(OnChangeDisableClasses)
631
631
if (stage != PHP_INI_SYSTEM ) {
632
632
return FAILURE ;
633
633
}
634
- php_error_docref ("disable_clases " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
634
+ php_error_docref ("disable_classes " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
635
635
636
- return SUCCESS ;
636
+ return FAILURE ;
637
637
}
638
638
639
639
/* defined in browscap.c */
@@ -733,8 +733,7 @@ PHP_INI_BEGIN()
733
733
PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
734
734
PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
735
735
PHP_INI_ENTRY ("disable_functions" , "" , PHP_INI_SYSTEM , NULL )
736
- // TODO Add warning when disabling classes
737
- //PHP_INI_ENTRY("disable_classes", "", PHP_INI_SYSTEM, NULL)
736
+ PHP_INI_ENTRY ("disable_classes" , "" , PHP_INI_SYSTEM , OnChangeDisableClasses )
738
737
PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
739
738
PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
740
739
0 commit comments