Skip to content
New issue

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

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

Already on GitHub? # to your account

PHP Fatal error: Cannot use 'Mixed' as class name as it is reserved in phar:///usr/local/bin/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op/Type/Mixed.php on line 16 #44

Closed
adabiraihan opened this issue Jan 9, 2023 · 8 comments

Comments

@adabiraihan
Copy link

Hello,

I'm installing with option 1 (phar), and I'm encountering this error

PHP Fatal error: Cannot use 'Mixed' as class name as it is reserved in phar:///usr/local/bin/progpilot/vendor/ircmaxell/php-cfg/lib/PHPCfg/Op/Type/Mixed.php on line 16

any idea? thanks

@eric-therond
Copy link
Collaborator

Hello
Did you try the latest progpilot version?
https://github.com/designsecurity/progpilot/releases/tag/v1.0.0

Eric

@adabiraihan
Copy link
Author

yes sirr,

image

@eric-therond
Copy link
Collaborator

Ok I see what's going wrong,
it's a problem during the phar generation,
I will try to fix it tomorrow,
thank you for the report

Eric

@adabiraihan
Copy link
Author

ok Eric, by the way thanks for the fast response :)

Thank You!

@eric-therond
Copy link
Collaborator

I let you test with this new one:
https://github.com/designsecurity/progpilot/releases/tag/v1.0.1

Eric

@adabiraihan
Copy link
Author

no luck sorry, it raise a new error

PHP Fatal error: Declaration of progpilot\Console\Application::run(?Symfony\Component\Console\Input\InputInterface $input = null, ?Symfony\Component\Console\Output\OutputInterface $output = null) must be compatible with Symfony\Component\Console\Application::run(?Symfony\Component\Console\Input\InputInterface $input = null, ?Symfony\Component\Console\Output\OutputInterface $output = null): int in phar:///usr/local/bin/progpilot/vendor/progpilot/package/src/progpilot/Console/Application.php on line 27

@eric-therond
Copy link
Collaborator

It's a shame... I have no excuses, this project lacks of tests about the console/phar application
I hope this one is ok now: https://github.com/designsecurity/progpilot/releases/tag/v1.0.2

Eric

@adabiraihan
Copy link
Author

works like a charm, thanks Eric !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants