πŸ’Ž PREMIUM: Ticket/ - Uncensored 2025

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#64008 closed task (blessed) (fixed)

Update Sodium Compat to 1.21.2 for better PHP 8.5 support

Reported by: paragoninitiativeenterprises's profile paragoninitiativeenterprises Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: External Libraries Keywords: needs-patch php85
Focuses: php-compatibility Cc:

Description

Version 1.21.2 is mostly to prevent deprecation warnings on PHP 8.5. These should never be encountered in practice (as the only file in scope was a SplFixedArray polyfill for PHP 5.2, which should never be executed on PHP 8.5), but for completeness the poylfill was updated.

Previously, #61686

Change History (5)

#1 @johnbillion
3 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.9
  • Type changed from defect (bug) to task (blessed)

#2 @TobiasBg
3 months ago

See #63962 for the ticket handling this deprecation in WP Core.

#3 @johnbillion
3 months ago

  • Keywords php85 added

#4 @SergeyBiryukov
3 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 60787:

Upgrade/Install: Update sodium_compat to v1.21.2.

Version 1.21.2 is mostly to prevent deprecation warnings on PHP 8.5. These should never be encountered in practice (as the only file in scope was an SplFixedArray polyfill for PHP 5.2, which should never be executed on PHP 8.5), but for completeness the polyfill was updated.

References:

Follow-up to [55699], [58752], [58753].

Props paragoninitiativeenterprises, jrf, johnbillion, TobiasBg, SergeyBiryukov.
Fixes #64008.

#5 @SergeyBiryukov
3 months ago

In 60795:

Coding Standards: Add specific sniff exclusions for serialize functions in sodium_compat.

These are necessary for a passing PHP Compatibility scan.

Follow-up to [47735], [60787].

See #64008.

Note: See TracTickets for help on using tickets.