? ? Pending

User tests: Successful: Unsuccessful:

avatar xillibit
xillibit
1 Dec 2020

Pull Request for Issue #31552.

Summary of Changes

Changes the checks for the Php 8.0 compatibility after the calls of imagecreatefromgif, imagecreatefromjpeg and imagecreatefrompng when the image is loaded because it doesn't return a ressource in Php 8.0 but an object

Testing Instructions

Use an extension which use the Joomla\Image class

Actual result BEFORE applying this Pull Request

Exception : Unable to process JPG image. in C:\Users\xillibit\git\joomla-cms-39\libraries\vendor\joomla\image\src\Image.php on line 143

Expected result AFTER applying this Pull Request

No exception

Documentation Changes Required

No

avatar xillibit xillibit - open - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2020
Category External Library Libraries Composer Change
avatar xillibit xillibit - change - 1 Dec 2020
Labels Added: ? ?
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar 810 810 - test_item - 1 Dec 2020 - Tested successfully
avatar 810
810 - comment - 1 Dec 2020

I have tested this item successfully on 32055da


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31554.

avatar Hackwar
Hackwar - comment - 2 Dec 2020

Please don't edit an external dependency. Fix it in the framework package and then update the composer.json.

avatar xillibit
xillibit - comment - 2 Dec 2020

PR done on joomla-framework : joomla-framework/image#23, but it's has no sense because the image package in framework will be removed and replaced by Joomla\CMS\Image : #22817 (comment). It's already the case in J!4.0

avatar nibra
nibra - comment - 2 Dec 2020

Just released joomla/image-1.5.1 as a PHP8 compatibility release.

avatar xillibit
xillibit - comment - 2 Dec 2020

I'am trying to update the joomla\image package in joomla, i have changed in composer.json the line of joomla\image like that :

"joomla/image": "^1.5.1",

then when i do an composer update joomla\image it fails :

Failed to clone the git@github.com:joomla-backports/lessphp.git repository, try running in interactive mode so that you can enter your GitHub credentials

avatar nibra
nibra - comment - 2 Dec 2020

joomla/image is not a Composer dependency in the CMS; it is located in libraries/src/, not in libraries/vendor/.
Thus the changes made in the Framework must be ported to the CMS manually.

avatar 810 810 - test_item - 2 Dec 2020 - Tested successfully
avatar 810
810 - comment - 2 Dec 2020

I have tested this item successfully on a72b997


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31554.

avatar gostn gostn - test_item - 6 Dec 2020 - Tested successfully
avatar gostn
gostn - comment - 6 Dec 2020

I have tested this item successfully on a72b997


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31554.

avatar 810
810 - comment - 12 Dec 2020

RTC

avatar HLeithner
HLeithner - comment - 12 Dec 2020

@nibra what happens to this pr? the complete file is changed

avatar xillibit
xillibit - comment - 12 Dec 2020

All the lines are changed because the files had a wrong encoding

avatar nibra
nibra - comment - 12 Dec 2020

All the lines are changed because the file had a wrong encoding

In this PR, in the CMS or in the Framework?

avatar xillibit
xillibit - comment - 12 Dec 2020

In this PR, in the CMS or in the Framework?

In this PR

avatar HLeithner
HLeithner - comment - 14 Dec 2020

ok @xillibit can you bring this into a form where we don't loose the complete history of this file?

avatar xillibit
xillibit - comment - 14 Dec 2020

@HLeithner : i have updated the PR so you can see the changes

avatar HLeithner
HLeithner - comment - 14 Dec 2020

Thanks

avatar HLeithner HLeithner - change - 14 Dec 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-14 19:23:06
Closed_By HLeithner
avatar HLeithner HLeithner - close - 14 Dec 2020
avatar HLeithner HLeithner - merge - 14 Dec 2020
avatar SharkyKZ
SharkyKZ - comment - 14 Dec 2020

Composer changes are missing...

avatar HLeithner
HLeithner - comment - 15 Dec 2020

@xillibit I had to revert this because you updated the image dependency by hand and I overlooked this, please make a new PR with a proper compoer updat.

thanks @SharkyKZ

avatar PhilETaylor
PhilETaylor - comment - 18 Dec 2020

If this has been reverted please can it be removed from the milestone for 3.9.24RC ? as it shows up as something changed in 3.9.24RC for testing.

avatar HLeithner
HLeithner - comment - 18 Dec 2020

@PhilETaylor the revert was not in the milestone (my fault) but the composer update has actually be done in #31663

Add a Comment

Login with GitHub to post a comment