Skip to content

Fix PHP 8 compatibility in idna_convert - #48

Open
johansolve wants to merge 1 commit into
glesys:masterfrom
johansolve:fix-idna-convert-php8
Open

Fix PHP 8 compatibility in idna_convert#48
johansolve wants to merge 1 commit into
glesys:masterfrom
johansolve:fix-idna-convert-php8

Conversation

@johansolve

Copy link
Copy Markdown
Contributor

Makes PHP/api_classes/idna_convert.php run cleanly on PHP 8.x.

  • Replace curly-brace string offset syntax ($str{$i}), removed in PHP 8.0, with square brackets in four places.
  • Declare the $slast property to avoid the dynamic property deprecation notice (PHP 8.2).

No behavioural change — encode() verified to still produce correct punycode output.

🤖 Generated with Claude Code

Replace curly-brace string offset syntax (removed in PHP 8.0) with
square brackets, and declare the $slast property to avoid the
dynamic property deprecation notice (PHP 8.2).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XM4dnVfCghHbjdoCLtzmus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant