Port Image_Color and Image_Canvas to PHP8

From: Date: Wed, 02 Oct 2024 00:14:45 +0000
Subject: Port Image_Color and Image_Canvas to PHP8
Groups: php.pear.general 
Request: Send a blank email to [email protected] to get a copy of this message
Dear list,

I need to (try to) port Image_Color and Image_Canvas (which require Image_Color) to PHP 8.

For Image_Color this is not too hard. As I did for HTML_Template_IT, the goal is to keep compatibility from PHP 5.6 to PHP 8. The main challenge is to have CI and be able run the test s for a large span of PHP version (as PHPUnit changed a lot in between). I opened a first PR (https://github.com/pear/Image_Color/pull/2) to convert the test suite to PHPUnitPolyFill which is very handy. for such cases

I have 2 branches based on that to add GitHub actions (for CI) and to port the code to PHP 8 (I will open the PR after).

I haven't looked much to Image_Canvas for now but as the tests don't use PHPUnit (it's simple scripts), it might be a bit simpler.

As before, I would appreciate any idea on that.

Thanks in advance,
Mathieu

-- 
Mathieu Dubois - IR - UMR 8030 équipe LABGeM
CEA - Genoscope. 2 rue Gaston Crémieux. 91057 Evry Cedex France.
Bureau B07
+33 1 60 87 53 35


Thread (7 messages)

« previous php.pear.general (#32312) next »