yii_youjhj 2015-10-21 17:27:27 2428次浏览 2条回复 0 0 0
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;
    }
  • 回复于 2015-10-21 17:52 举报

    什么鬼?看不懂啊,楼主好好排下版呗。

  • 回复于 2015-10-31 09:47 举报

    看英文是不是缺乏验证连接啊,建议把使用composer安装失败的信息发出来,或者是composer安装失败的信息也发出来。

您需要登录后才可以回复。登录 | 立即注册