? Pending

User tests: Successful: Unsuccessful:

avatar beat
beat
18 Jan 2022

Pull Request for Issue # .

Summary of Changes

Fixes PHP 8.1 deprecation warning in Joomla 3.10.

Note in Joomla 4.0: Same PHP 8.1 deprecated issue is in libraries/vendor/joomla/application/src/AbstractWebApplication.php line 886 but it doesn't appear.

Testing Instructions

Use PHP 8.1 in Joomla 3.10
Enable debug mode (without Debug plugin enabled!) (not sure if CB also imight be needed to reproduce).
Go to administration home page

Actual result BEFORE applying this Pull Request

Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in libraries/src/Application/WebApplication.php on line 1101

Expected result AFTER applying this Pull Request

No warning.

Documentation Changes Required

None.

avatar beat beat - open - 18 Jan 2022
avatar beat beat - change - 18 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jan 2022
Category Libraries
avatar beat beat - change - 18 Jan 2022
The description was changed
avatar beat beat - edited - 18 Jan 2022
avatar beat beat - change - 18 Jan 2022
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 18 Jan 2022

Joomla 4 has

header(str_replace(\chr(0), '', $string), $replace, $code);

maybe that could be back ported into Joomla 3.10 with this PR? No?

avatar beat
beat - comment - 18 Jan 2022

Joomla 4 has

header(str_replace(\chr(0), '', $string), $replace, $code);

maybe that could be back ported into Joomla 3.10 with this PR? No?

That zero-chars replacement is already in Joomla 3.10, even written cleaner, as a separate line:

https://github.com/joomla/joomla-cms/pull/36728/files#diff-1025beca1d0f857cf456d164a0dac843df258d41f804f39bc98270568b329936R1100

avatar PhilETaylor
PhilETaylor - comment - 18 Jan 2022

Ah sorry missed that

Sent from my iPhone

On 18 Jan 2022, at 14:17, beat @.***> wrote:


Joomla 4 has

header(str_replace(\chr(0), '', $string), $replace, $code);
maybe that could be back ported into Joomla 3.10 with this PR? No?

That zero-chars replacement is already in Joomla 3.10, even written cleaner, as a separate line:

https://github.com/joomla/joomla-cms/pull/36728/files#diff-1025beca1d0f857cf456d164a0dac843df258d41f804f39bc98270568b329936R1100


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.

avatar beat
beat - comment - 18 Jan 2022

No worries, checked before committing too to make sure that security-wise we're fine! 😉

Ah sorry missed that

avatar zero-24
zero-24 - comment - 18 Jan 2022

Will take this for 3.10.6 thanks @beat

avatar zero-24 zero-24 - change - 18 Jan 2022
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-18 19:49:46
Closed_By zero-24
avatar zero-24 zero-24 - close - 18 Jan 2022
avatar zero-24 zero-24 - merge - 18 Jan 2022

Add a Comment

Login with GitHub to post a comment