PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar stell
stell
4 Jul 2023

PHP 8.1

Pull Request for Issue #40438.

Summary of Changes

Existing code that relied on is_resource function now needs to account for the new FTP\Connection class objects in PHP 8.1.

Testing Instructions

see #40438.

Actual result BEFORE applying this Pull Request

fail

Expected result AFTER applying this Pull Request

works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2023
Category Libraries
avatar stell stell - open - 4 Jul 2023
avatar stell stell - change - 4 Jul 2023
Status New Pending
avatar richard67
richard67 - comment - 4 Jul 2023

@stell Will this still work on PHP versions older than 8.1? If not, the PR cannot be used for 4.3 or 4.4 and has to be made for 5.0, i.e. the base branch needs to be changed to 5.0-dev. With Joomla 4.3 and 4.4 we still have to support older PHP versions, with Joomla 5 the minimum required PHP version will be 8.1.

avatar stell stell - change - 4 Jul 2023
Labels Added: PR-4.3-dev
avatar stell
stell - comment - 4 Jul 2023

@richard67 Checking boolean works for FTP Buffer (< 8.1) and FTP\Connection(> 8.0) as far i can see.

avatar HLeithner
HLeithner - comment - 26 Jul 2023

It' something for j4.4 but please check if is_resource or object and instance of the ftp class.

avatar HLeithner HLeithner - change - 26 Jul 2023
Title
Update FtpClient.php
[4.4] Update FtpClient.php
avatar HLeithner HLeithner - edited - 26 Jul 2023
avatar laoneo laoneo - test_item - 17 Aug 2023 - Tested successfully
avatar laoneo
laoneo - comment - 17 Aug 2023

I have tested this item ✅ successfully on 0d75fae

Tested on PHP 8.2 and 7.4


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

avatar MacJoom MacJoom - change - 19 Aug 2023
Labels Added: PR-4.4-dev
Removed: PR-4.3-dev
avatar MacJoom MacJoom - change - 21 Aug 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-08-21 14:36:22
Closed_By MacJoom
avatar MacJoom MacJoom - close - 21 Aug 2023
avatar MacJoom MacJoom - merge - 21 Aug 2023

Add a Comment

Login with GitHub to post a comment