No Code Attached Yet
avatar keep
keep
14 Jan 2026

Description

While running Joomla 6.0.2 under PHP 8.5, the following deprecation notice appears:

Deprecated: Non-canonical cast (binary) is deprecated, use the (string) cast instead
in libraries/vendor/algo26-matthias/idna-convert/src/TranscodeUnicode/ByteLengthTrait.php on line 17

This originates from the algo26-matthias/idna-convert dependency bundled in Joomla core.

Upstream Fix

The upstream library has already merged a fix for this exact problem — the deprecated (binary) cast has been replaced with (string) — in this pull request:
algo26-matthias/idna-convert#59

Steps to Reproduce

  1. Install Joomla 6.0.2
  2. Use PHP 8.5
  3. Load any page that triggers IDNA processing

Expected Result

No deprecated warnings from a core vendor library.

Actual Result

PHP deprecation warning shown due to the (binary) cast.

Suggested Solution

Update the bundled algo26-matthias/idna-convert to a version that contains the upstream fix (or apply the upstream patch in Joomla core).

Environment

  • Joomla 6.0.2
  • PHP 8.5
avatar keep keep - open - 14 Jan 2026
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jan 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Jan 2026
avatar keep keep - change - 14 Jan 2026
The description was changed
avatar keep keep - edited - 14 Jan 2026
avatar brianteeman
brianteeman - comment - 14 Jan 2026

FYI The upstream fix you refer to was created by a joomla contributor but a new release has not been tagged

avatar tecpromotion
tecpromotion - comment - 16 Jan 2026

I have contacted the lead developer of idna-converter privately and informed them about this. I expect a solution to be found soon. I will leave the issue open so that we can link it to a suitable PR.

Update: I have received a reply. It is on his list and should be done in the next few days.

avatar tecpromotion
tecpromotion - comment - 20 Jan 2026
avatar heelc29
heelc29 - comment - 20 Jan 2026

Please test #46724 for J5.4 and #46725 for J6.0

avatar tecpromotion tecpromotion - change - 20 Jan 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-01-20 12:05:34
Closed_By tecpromotion
avatar tecpromotion tecpromotion - close - 20 Jan 2026
avatar tecpromotion
tecpromotion - comment - 20 Jan 2026

Since there are PRs, I am closing this issue.

Add a Comment

Login with GitHub to post a comment