Skip to content

Commit 53fbaf4

Browse files
committed
try to trigger a E_WARNING
1 parent 96b9e99 commit 53fbaf4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main/main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)