Skip to content

Broken in PHP 8 #25

Description

@CountMurphy

Current version of phproxy fails in initial page load.

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in    /var/www/phproxy/index.php on line 180

Activity

  1. WebWire-NL commented on Nov 25, 2021

    @WebWire-NL

    Replace following line (line 180) in index.php:
    $_flags[$flag_name] = $_frozen_flags[$flag_name] ? $flag_value : (int)(bool)$_iflags{$i};

    with:

        if ($_frozen_flags[$flag_name] != 0) {
                $_flags[$flag_name] = $flag_value;
        }
    
  2. gothickitty93 commented on Feb 18, 2022

    @gothickitty93

    Replace following line (line 180) in index.php: $_flags[$flag_name] = $_frozen_flags[$flag_name] ? $flag_value : (int)(bool)$_iflags{$i};

    with:

        if ($_frozen_flags[$flag_name] != 0) {
                $_flags[$flag_name] = $flag_value;
        }
    

    If this is a working solution, then you should submit a pull request.

  3. Quix0r commented on Sep 9, 2024

    @Quix0r
    Contributor

    Well, with this the casting `(int)(bool) has been removed as well.

  4. miglen commented on May 27, 2026

    @miglen
    Member

    Fixed by #48 — the repo now runs on PHP 8.5.6 with zero deprecations. The container-based dev setup is documented in the README. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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