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

PHP parse error in PHP 7.0 #184

Closed
chrisleekr opened this issue May 18, 2019 · 8 comments

Comments

Projects
None yet
2 participants
@chrisleekr
Copy link

commented May 18, 2019

With latest version PHPBU 5.2.0 onwards, it gets PHP parse error with one of library called tightenco in PHP 7.0.33.

PHP 7.0.33 (cli) (built: May  5 2019 13:16:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies
    with SourceGuardian v11.2, Copyright (c) 2000-2018, by SourceGuardian Ltd.

[18-May-2019 23:17:04 Australia/Melbourne] PHP Warning:  Class 'Tightenco\Collect\Support\Arr' not found in phar:///home/user/backup/phpbu-5.2.1.phar/lib/tightenco/Collect/Support/alias.php on line 16
[18-May-2019 23:17:04 Australia/Melbourne] PHP Parse error:  syntax error, unexpected '=' in phar:///home/user/backup/phpbu-5.2.1.phar/lib/tightenco/Collect/Support/Arr.php on line 380

I have tested, version 5.1.11 is working with above PHP 7.0; however, after that version, it shows parsing error.

Can it be fixed?

@chrisleekr chrisleekr changed the title PHP Parse Error PHP parse error in PHP 7.0 May 18, 2019

@sebastianfeldmann sebastianfeldmann self-assigned this May 18, 2019

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

commented May 18, 2019

Have you tried the lates version phpbu 5.2.2

@chrisleekr

This comment has been minimized.

Copy link
Author

commented May 18, 2019

Yes, I have tried and occurs same error.

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

commented May 18, 2019

I'll have a look at this ASAP

@chrisleekr

This comment has been minimized.

Copy link
Author

commented May 19, 2019

Thanks, @sebastianfeldmann

:)

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

commented May 20, 2019

I just released version 5.2.3
Now the PHAR should work with php 7.0 again.

The problem was a dependency changing the php requirement in a minor version 🎉

@chrisleekr

This comment has been minimized.

Copy link
Author

commented May 20, 2019

Cool, let me test it.

@chrisleekr

This comment has been minimized.

Copy link
Author

commented May 20, 2019

It works!.

Thanks @sebastianfeldmann

I will close the issue. :)

@chrisleekr chrisleekr closed this May 20, 2019

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

commented May 20, 2019

Awesome, thanks for reporting the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.