Re: Removing support for the disable_classes INI setting
| From: | Juliette Reinders Folmer | Date: | Tue, 15 Aug 2023 16:20:02 +0000 |
| Subject: | Re: Removing support for the disable_classes INI setting | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120911@lists.php.net to get a copy of this message | ||
On 15-8-2023 3:43, Kalle Sommer Nielsen wrote:
Hi Den man. 14. aug. 2023 kl. 22.05 skrev Juliette Reinders Folmer <php-internals_nospam@adviesenzo.nl>:Hi George, For what its worth: in my experience, theThis depends on whether we choose to explicitly mark the ini directive as one such. As the original implementor of that logic, it was meant as an upgrade tool for PHP 5.3.0 when we also reorganized the php.ini files, rather than have developers just copy over their old, non-working files over to cause unexpected features to still be available. So there is always the option to not enlist it there, though it would be ideal to do so to prevent developers from getting a false sense of "security", but that is just my personal take. Ah, that explains it! Thanks for adding that context Kalle!disable_classesanddisable_functionsini directives are mostly used by hosting companies providing shared/virtual host environments and, most often for those environments, not editable by their users via a control panel or nor do these users have (edit) access to the php.ini file. Declaring an ini directive in the php.ini file which has been removed will instantly cause a fatal error on starting PHP, so I wonder what the impact will be when a user switches PHP version (which they often can choose to do via a control panel).