Skip to content

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/allsky/functions.php on line 186 #5015

@itsgps

Description

@itsgps

This occurs in CURRENT, and will be seen in Newer versions of PHP from 8.2.x onwards where the RFC was:
"Deprecate dynamic properties and some legacy string interpolation features"
The Deprecation is:
"{$foo[bar]}"
"imagecreatefrom${funcext}"

Specifically for AllSky - The Function on line 186 is:
if (function_exists("imagecreatefrom${funcext}") == false)

Suggested fix for this is to change the Function to the following - which is valid also for all versions of PHP from 5.2 Onwards:

if (function_exists("imagecreatefrom{$funcext}") == false)

The Existing Function will be fully deprecated from PHP 9.0 onwards

Basing this requirement on a Recent update to Allsky sites - not sure if it has already been rectified in any recent code changes - in which case this Issue can be closed off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions