You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-bash-4.2$ /opt/plesk/php/7.4/bin/php /var/www/vhosts/example.com/httpdocs/phpbu-6.0.20.phar --configuration=/var/www/vhosts/example.com/httpdocs/config/phpbu.xml
phpbu 6.0.20 by Sebastian Feldmann and contributors.
Runtime: PHP 7.4.33
Configuration: /var/www/vhosts/example.com/httpdocs/config/phpbu.xml
PHP Parse error: syntax error, unexpected 'static' (T_STATIC) in phar:///var/www/vhosts/example.com/httpdocs/phpbu-6.0.20.phar/lib/symfony/process/Process.php on line 190
But the same phpbu version installed with composer as a dependency inside my php application, it works!
That error message looks like the 6.0.20 release .phar file was compiled with dependencies (i.e. symfony/process) that are "too new" and don't support PHP 7.x anymore.
I don't know the exact build process, but my guess is that it was done on a system that had PHP 8.X installed, so Composer thought it could fetch modern dependency versions, which were then baked into the release.
Well basically I've got
PHP 7.4.33
running.I've downloaded the phar file from https://phar.phpbu.de/phpbu-6.0.20.phar that apparently is compatible with my php version.
Then when I run it:
But the same phpbu version installed with composer as a dependency inside my php application, it works!
So why composer installed version is working but the downloaded phar doesn't?
The text was updated successfully, but these errors were encountered: