例外"您的PHP版本...受CVE-2013-6420影响......"在创建Laravel项目时

时间:2016-03-05 06:41:00

标签: laravel-5 openssl composer-php

运行命令时:

composer create-project --prefer-dist laravel/laravel blog

我收到这些错误 -

Your version of PHP, 5.4.12, is affected by CVE-2013-6420 and cannot safely perform
certificate validation, we strongly suggest you upgrade.


 [Composer\Downloader\TransportException]
 The "https://packagist.org/packages.json" file could not be downloaded:
 SSL operation failed with code 1. OpenSSL Error messages:
 error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
 Failed to enable crypto
 failed to open stream: operation failed

 create-project [-s|--stability STABILITY] [--prefer-source] 
 [--prefer-dist] [--repository REPOSITORY] [--repository-url           
 REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] 
 [--no-custom-installers] [--no-scripts] [--noprogress] [--keep-vcs] 
 [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>][<version>]

任何人都可以告诉我可能是什么问题。我正在使用代理网络。在环境变量中,我设置了http_proxy和amp; https_proxy。

1 个答案:

答案 0 :(得分:2)

对于laravel 5.2,所需的最低版本的PHP是5.5.9 所以你必须升级你的PHP版本。 如果您使用代理网络而不是https_proxy变量,则还需要只有http_proxy作为系统变量。