@@ -743,9 +743,9 @@ static PHP_INI_MH(OnChangeDisableClasses)
743743 if (stage != PHP_INI_SYSTEM ) {
744744 return FAILURE ;
745745 }
746- php_error_docref ("disable_clases " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
746+ php_error_docref ("disable_classes " , E_WARNING , "The disable_classes INI setting has been removed and has no effect" );
747747
748- return SUCCESS ;
748+ return FAILURE ;
749749}
750750
751751/* defined in browscap.c */
@@ -848,8 +848,7 @@ PHP_INI_BEGIN()
848848 PHP_INI_ENTRY ("sendmail_path" , DEFAULT_SENDMAIL_PATH , PHP_INI_SYSTEM , NULL )
849849 PHP_INI_ENTRY ("mail.force_extra_parameters" ,NULL , PHP_INI_SYSTEM |PHP_INI_PERDIR , OnChangeMailForceExtra )
850850 PHP_INI_ENTRY ("disable_functions" , "" , PHP_INI_SYSTEM , NULL )
851- // TODO Add warning when disabling classes
852- //PHP_INI_ENTRY("disable_classes", "", PHP_INI_SYSTEM, NULL)
851+ PHP_INI_ENTRY ("disable_classes" , "" , PHP_INI_SYSTEM , OnChangeDisableClasses )
853852 PHP_INI_ENTRY ("max_file_uploads" , "20" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
854853 PHP_INI_ENTRY ("max_multipart_body_parts" , "-1" , PHP_INI_SYSTEM |PHP_INI_PERDIR , NULL )
855854
0 commit comments