创建 Laravel 项目时出现异常 "Your version of PHP... is affected by CVE-2013-6420..."

Exception "Your version of PHP... is affected by CVE-2013-6420..." when creating Laravel project

在 运行 命令上:

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

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