zf1-future icon indicating copy to clipboard operation
zf1-future copied to clipboard

Checklist to confirm PHP 8.2 compatibility

Open IMSoP opened this issue 1 year ago • 1 comments

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 avatar Oct 09 '24 16:10 IMSoP

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.

IMSoP avatar Oct 13 '24 17:10 IMSoP

All items in the checklist appear to be verified as compatible:

  • var_export: ✅
  • ksort / krsort: ✅
  • glob(): Already correctly handles false in Zend_Cache_Backend_File
  • setlocale(): Mostly used for reading current settings, which is acceptable

Can we consider this officially PHP 8.2 compatible?

ferranbonas avatar May 14 '25 23:05 ferranbonas

I'm about to do some migrations this summer, so I can give feedback afterwards. Basically we are talking here just about the project description change.

develart-projects avatar May 19 '25 18:05 develart-projects

https://github.com/Shardj/zf1-future/actions/runs/14320283287/job/40135623330#step:7:1

Maybe that issue should be reviewed?

sreichel avatar May 20 '25 17:05 sreichel

Hello, Do you have any news about PHP 8.2 compatibility? What potential issues should we expect?

ouslie avatar Aug 28 '25 09:08 ouslie

Seems, like we haven't any troubles running current code on the 8.2. At least I got no complains so far, so I'm considering this more-less compatible with 8.2 (more-less, because we are not using all components ofc).

develart-projects avatar Nov 17 '25 23:11 develart-projects

So I can probably mark this PHP 8.2 ready as soon, as next version is released.

develart-projects avatar Nov 17 '25 23:11 develart-projects

I've been running on 8.3 for a while with no issues.

rruchte avatar Nov 17 '25 23:11 rruchte