Skip to content

Fatal errors in php 8.0 #2

@devup

Description

@devup

Got fatal error after upgrade to php 8.
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported
In lines: 442 , 869, 1000
To fix (change { to [ and } to ] ):
$digit = $this->_decode_digit($encoded{$enco_idx++}); --> $digit = $this->_decode_digit($encoded[$enco_idx++]);
$v = ord($input{$k}); -->$v = ord($input[$k]);
$output[$out_len] += ord($input{$i}) << (8 * (3 - ($i % 4) ) ); --> $output[$out_len] += ord($input[$i]) << (8 * (3 - ($i % 4) ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions