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 Deprecated error running Composer-Setup.exe or .php #122

Closed
W1DJM opened this issue Aug 8, 2020 · 3 comments
Closed

PHP Deprecated error running Composer-Setup.exe or .php #122

W1DJM opened this issue Aug 8, 2020 · 3 comments

Comments

@W1DJM
Copy link

W1DJM commented Aug 8, 2020

Following the instructions found here while using PHP 8 Beta 1 I am getting a PHP Deprecated error for the openssl_free_key() function. From the command line using:

php composer-setup.php --install-dir=d:\composer

The complete error shown is:

Deprecated: Function openssl_free_key() is deprecated in D:\composer\composer-setup.php on line 1034

From the command line the phar file DOES get created. Using Composer-Setup.exe fails with the same error but no phar file is created.

I expected the installation to complete without errors. At least with the command line method I do get a phar file but not with the GUI version.

Composer_details
Composer_error

@stof
Copy link

stof commented Aug 10, 2020

this relates to the installer script of https://github.com/composer/windows-setup
/cc @johnstevenson

@johnstevenson
Copy link
Member

@stof Indeed, my logic didn't cater for stderr output and a zero (success) exit code, so I'll fix this in Composer-Setup.exe.

The php installer script is the same as https://github.com/composer/getcomposer.org/blob/master/web/installer so I'll fix these to handle the deprecation in PHP 8.

@Seldaek Seldaek transferred this issue from composer/composer Aug 12, 2020
@johnstevenson
Copy link
Member

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

3 participants