@@ -730,9 +730,9 @@ static PHP_INI_MH(OnChangeDisableClasses)
730730 if (stage != PHP_INI_SYSTEM ) {
731731 return FAILURE ;
732732 }
733- php_error_docref ("disable_clases " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
733+ php_error_docref ("disable_classes " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
734734
735- return SUCCESS ;
735+ return FAILURE ;
736736}
737737
738738/* defined in browscap.c */
@@ -835,8 +835,7 @@ PHP_INI_BEGIN()
835835 PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
836836 PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
837837 PHP_INI_ENTRY ("disable_functions" , "" , PHP_INI_SYSTEM , NULL )
838- // TODO Add warning when disabling classes
839- //PHP_INI_ENTRY("disable_classes", "", PHP_INI_SYSTEM, NULL)
838+ PHP_INI_ENTRY ("disable_classes" , "" , PHP_INI_SYSTEM , OnChangeDisableClasses )
840839 PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
841840 PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
842841
0 commit comments