Feature #21615
closedAdd polyfills to provide compatibility with PHP 8.x
0%
Description
Plugins active on the Commons use a handful of plugins that have been removed completely from PHP 8.0+
1. each()
iterates through an array
2. create_function()
creates a dynamic function
3. get_magic_quotes_gpc()
used to get the magic quotes config and returns false
since PHP 7.4
Each of these can be resolved with a simple polyfill.
Related #21381
Updated by Jeremy Felt 2 months ago
- Target version set to 2.5.0
The 2.5.x branch now has a cac-php-polyfills.php
MU plugin with these polyfills.
each
https://github.com/cuny-academic-commons/cac/commit/ac86ef544bb5224511ff5aaa1f39404f144a756ccreate_function
https://github.com/cuny-academic-commons/cac/commit/eb5a08d62b8470f86acbf9c03d7c7b10b3c1b593get_magic_quotes_gpc
https://github.com/cuny-academic-commons/cac/commit/b0b92a7cf36473f23a06c6d4624b939d21b81182
Updated by Boone Gorges about 2 months ago
- Status changed from New to Staged for Production Release
Updated by Boone Gorges about 2 months ago
- Status changed from Staged for Production Release to Resolved