@@ -631,9 +631,9 @@ static PHP_INI_MH(OnChangeDisableClasses)
631631 if (stage != PHP_INI_SYSTEM ) {
632632 return FAILURE ;
633633 }
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" );
635635
636- return SUCCESS ;
636+ return FAILURE ;
637637}
638638
639639/* defined in browscap.c */
@@ -733,8 +733,7 @@ PHP_INI_BEGIN()
733733 PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
734734 PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
735735 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 )
738737 PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
739738 PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
740739
0 commit comments