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

Error in running leproxy-0.2.2.php downloaded from release page #88

Open
mahdiaslami opened this issue Jun 14, 2023 · 1 comment · May be fixed by #89
Open

Error in running leproxy-0.2.2.php downloaded from release page #88

mahdiaslami opened this issue Jun 14, 2023 · 1 comment · May be fixed by #89
Labels

Comments

@mahdiaslami
Copy link

mahdiaslami commented Jun 14, 2023

Hi,

I have got PHP Parse error: syntax error, unexpected namespaced name "instanceof\Closure" in /home/user/Downloads/leproxy-0.2.2.php on line 160 error when running leproxy-0.2.2.php file with PHP.

I downloaded this file from GitHub release page.

$ php -v
PHP 8.1.9 (cli) (built: Aug 15 2022 09:39:52) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.9, Copyright (c), by Zend Technologies
    with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

Thanks

gtgt added a commit to gtgt/leproxy that referenced this issue Jul 13, 2023
Better not to remove whitespace if followed by backslash.

Fixes leproxy#88
@SimonFrings
Copy link
Contributor

Hey @mahdyaslami, thanks for bringing this up 👍

I also ran some tests and it seems like we need to do some adjustments in order to make this project compatible with PHP 8.1+. We also have to do a bunch of test suite improvements, as we're currently using an old PHPUnit version to run the tests on latest PHP. I opened a ticket (#90) for this so we can track the progress status to support the latest PHP versions.

Our current priorities are focused on ReactPHP's MySQL connection pool, as discussed in friends-of-reactphp/mysql#175. Afterward, we plan to shift our attention to Framework X. If you need this urgently, you can always reach out to us or help us prioritizing this by becoming a sponsor ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants