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 Fatal error during platform check #81

Closed
Prometee opened this issue Sep 20, 2023 · 4 comments
Closed

PHP Fatal error during platform check #81

Prometee opened this issue Sep 20, 2023 · 4 comments

Comments

@Prometee
Copy link

Since v1.0.5 I encountered this error on MacOs and Docker (Linux alpine image)

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. in phar:///..../.composer/vendor/dbrekelmans/bdi/bdi/vendor/composer/platform_check.php on line 24

Here is the detailed output :

# composer global exec bdi -vvv

> __exec_command: bdi
Executing command (CWD): bdi

Box Requirements Checker
========================

> Using PHP 8.0.30
> PHP is using the following php.ini file:
  /usr/local/etc/php/8.0/php.ini

> Checking Box requirements:
  ✔ The application requires a version matching "^7.2|^8.0".
  ✔ The application requires the extension "json".
  ✔ The package "myclabs/php-enum" requires the extension "json".
  ✔ The application requires the extension "zip".
  ✔ The application requires the extension "zlib".
  ✔ The package "symfony/service-contracts" conflicts with the extension "psr".
  
                                                                                                                                                                                                                                   
 [OK] Your system is ready to run the application.                                                                                                                                                                                 
                                                                                                                                                                                                                                   

PHP Fatal error:  Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. in phar:///Users/prometee/.composer/vendor/dbrekelmans/bdi/bdi/vendor/composer/platform_check.php on line 24

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. in phar:///Users/prometee/.composer/vendor/dbrekelmans/bdi/bdi/vendor/composer/platform_check.php on line 24
Script bdi handling the __exec_command event returned with error code 255

Using the v1.0.4 no issue encountered.

@spipu
Copy link

spipu commented Sep 26, 2023

It is due to this commit : 6ac390c
By building on PHP8.2 instead of PHP7.2, it increase the minimal allowed version of php in the platform_check.php file of the phar.

@dbrekelmans Because you test all on accept PHP7.2 on https://github.com/dbrekelmans/browser-driver-installer/blob/acf0efa4a79785a670a34af7433fdce3b3bf0f34/.github/workflows/qa.yml you must build also on php7.2 and not php8.2

@cafferata
Copy link

Yes, same as us #78 (comment)

@dbrekelmans
Copy link
Owner

This should now be fixed in 1.0.7

@Prometee
Copy link
Author

Prometee commented Oct 4, 2023

I can confirm it's fixed, thank you guys

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