Shardj / zf1-future

PHP 8.1 compatible version of ZF1
BSD 3-Clause "New" or "Revised" License
441 stars 195 forks source link

Checklist to confirm PHP 8.2 compatibility #449

Open IMSoP opened 1 week ago

IMSoP commented 1 week ago

Since PHP has a policy of avoid Breaking Changes in "minor" releases, the library should in theory be compatible with any PHP 8.x. In practice, each PHP release has a small number of breaking changes, which might require small adjustments. (Note that there will be a larger list of new Warnings and Deprecations, but fixing these is not essential to consider the library compatible.)

For PHP 8.2, the manual lists the following incompatible changes. Once we have checked all of them, it should be safe to consider the library "PHP 8.2 compatible".

IMSoP commented 6 days ago

None of the uses of var_export makes any assumption about the exact shape of the output, only that it's valid PHP. If anything, the change will improve them, by outputting code that could be executed correctly in a namespaced context.

None of the uses of ksort or krsort seem to be making any strong assumptions about the order of data, except in the case of some which are using only numeric keys anyway.