Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken in PHP 8 #25

Open
CountMurphy opened this issue Sep 7, 2021 · 3 comments
Open

Broken in PHP 8 #25

CountMurphy opened this issue Sep 7, 2021 · 3 comments

Comments

@CountMurphy
Copy link

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
@WebWire-NL
Copy link

WebWire-NL commented Nov 25, 2021

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;
    }

@gothickitty93
Copy link

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.

@Quix0r
Copy link

Quix0r commented Sep 9, 2024

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

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

No branches or pull requests

4 participants