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 warning: failed loading cafile stream? #8039

Closed
oghusky opened this Issue Mar 14, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@oghusky
Copy link

oghusky commented Mar 14, 2019

When I run this command:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

I get the following output:

PHP Warning:  failed loading cafile stream: `\xampp\apache\bin\curl-ca-bundle.cr
t' in Command line code on line 1

Warning: failed loading cafile stream: `\xampp\apache\bin\curl-ca-bundle.crt' in
 Command line code on line 1
PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1

Warning: copy(): Failed to enable crypto in Command line code on line 1
PHP Warning:  copy(https://getcomposer.org/installer): failed to open stream: op
eration failed in Command line code on line 1

Warning: copy(https://getcomposer.org/installer): failed to open stream: operati
on failed in Command line code on line 1

And I expected this to happen:

@johnstevenson

This comment has been minimized.

Copy link
Member

johnstevenson commented Mar 14, 2019

PHP cannot find the certificate file that is defined either in your php.ini, or the environment. Try installing Composer using Composer-Setup.exe. This will give you more information in the case of errors.

@alcohol

This comment has been minimized.

Copy link
Member

alcohol commented Mar 15, 2019

It looks like you have a broken installation of PHP. This is not a Composer issue specifically.

@alcohol alcohol closed this Mar 15, 2019

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.
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.