Re: Port Image_Color and Image_Canvas to PHP8
| From: | Mathieu Dubois | Date: | Fri, 15 Nov 2024 07:30:16 +0000 |
| Subject: | Re: Port Image_Color and Image_Canvas to PHP8 | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-32316@lists.php.net to get a copy of this message | ||
Dear list,
As I said on another thread about HTML_Template_IT, I haven't received an answer about this. Anybody?
Thanks in advance,
Mathieu
Le 05/10/2024 à 03:13, Mathieu Dubois a écrit :
Dear list, I took a bit of time to work on Image_Canvas (it was not without a bit of pain): * PR #6 (https://github.com/pear/Image_Canvas/pull/6) modernize the-- 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 35scripts and add GitHub actions for the current code.* Building on that, I was able to port to PHP 8. I will open the PRafter #6 is merged.There are 3 caveats however: * PostScript output is not tested yet because I have some font issueand you need the PS extension (https://www.php.net/manual/en/book.ps.php). It should be doable.* PDF output is not tested because it uses the old PDFlib extension.This code needs to be re-done completely (probably based on FPDF).* As we require a version of Image_Color compatible with PHP 8, Iuse a branch in my fork (see composer.json). Of course, I will update that.Mathieu Le 02/10/2024 à 02:14, Mathieu Dubois a écrit :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