yii2.0.6 安装不上啊,求指导 [ 新手入门 ]
C:\Users\admin3>php -r "readfile('https://getcomposer.org/installer');" | php
version to install instead of the latest
--filename="..." accepts a target filename (default: composer.phar)
--disable-tls disable SSL/TLS security for file downloads
--cafile="..." accepts a path to a Certificate Authority (CA) certificate
file for SSL/TLS verification
EOF;
}
/**
* check the platform for possible issues on running composer
*/
function checkPlatform($quiet, $disableTls)
{
$errors = array();
$warnings = array();
$iniPath = php_ini_loaded_file();
$displayIniMessage = false;
if ($iniPath) {
$iniMessage = PHP_EOL.PHP_EOL.'The php.ini used by your command-line PHP
is: ' . $iniPath;
} else {
$iniMessage = PHP_EOL.PHP_EOL.'A php.ini file does not exist. You will h
ave to create one.';
}
$iniMessage .= PHP_EOL.'If you can not modify the ini file, you can also run
`php -d option=value` to modify ini values on the fly. You can use -d multiple
times.';
if (ini_get('detect_unicode')) {
$errors['unicode'] = 'On';
}
if (extension_loaded('suhosin')) {
$suhosin = ini_get('suhosin.executor.include.whitelist');
$suhosinBlacklist = ini_get('suhosin.executor.include.blacklist');
if (false === stripos($suhosin, 'phar') && (!$suhosinBlacklist || false
!== stripos($suhosinBlacklist, 'phar'))) {
$errors['suhosin'] = $suhosin;
}
}
if (!function_exists('json_decode')) {
$errors['json'] = true;
}
if (!extension_loaded('Phar')) {
$errors['phar'] = true;
}
共 2 条回复
-
bubifengyun 回复于 2015-10-31 09:47 举报
看英文是不是缺乏验证连接啊,建议把使用composer安装失败的信息发出来,或者是composer安装失败的信息也发出来。
yii_youjhj
注册时间:2014-12-15
最后登录:2017-08-31
在线时长:1小时47分
最后登录:2017-08-31
在线时长:1小时47分
- 粉丝0
- 金钱10
- 威望0
- 积分20