php 8.0 and mods/spamhurdles/api.php

Posted by rickrich 
php 8.0 and mods/spamhurdles/api.php
December 22, 2020 10:00PM
php 8.0 and mods/spamhurdles/api.php gives me:

<b>Fatal error</b>: Array and string offset access syntax with curly braces is no longer supported in <b>/homepages/29/d89658545/htdocs/geo/forum/mods/spamhurdles/api.php</b> on line <b>694</b><br />

I went back to php 7.4 for the time being.
Re: php 8.0 and mods/spamhurdles/api.php
December 23, 2020 08:04AM
Change the curly braces to [ ]

[www.php.net]

[code="php"]

<?php
// Instead of:
$array{0};
$array{"key"};
// Write:
$array[0];
$array["key"];
?>

[/code]
Re: php 8.0 and mods/spamhurdles/api.php
June 25, 2026 09:03AM
Dear all,

Can you help on GitHub?

I have created a new ticket to have a new team, to have PHP support improvements, etc.:
- [github.com]

There are two PRs:
- [github.com]
- [github.com]

captcha in GitHub tickets:
- [github.com]

Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login