PHP 8.x bug PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
28 Apr 2023

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 - 28 Apr 2023
Category Libraries
avatar alikon alikon - open - 28 Apr 2023
avatar alikon alikon - change - 28 Apr 2023
Status New Pending
avatar Hackwar
Hackwar - comment - 28 Apr 2023

Can't we just remove it?...

avatar brianteeman
brianteeman - comment - 28 Apr 2023

As stated in the issue report it is being used.

avatar stell
stell - comment - 4 May 2023

FTP is still being used by most of europes real estate business.
When trying this fix under PHP 8.1 i get
0 ftp_login(): Argument #1 ($ftp) must be of type FTP\Connection, null given
here:

if (@ftp_login($this->_conn, $user, $pass) === false) {

Same setup as PHP 8.0 without the issue

avatar alikon
alikon - comment - 4 Jul 2023

feel free to do a pr yourself @stell or send a pr to this branch https://github.com/alikon/joomla-cms/tree/patch-4

avatar alikon
alikon - comment - 4 Jul 2023

closing in favour of #41111

avatar alikon alikon - close - 4 Jul 2023
avatar alikon alikon - change - 4 Jul 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-07-04 15:14:52
Closed_By alikon
Labels Added: PHP 8.x bug PR-4.3-dev

Add a Comment

Login with GitHub to post a comment