关于wamp go-pear.bat 出错解决方法

 Quote: 

phar "C:/wamp/bin/php/php5.3.0/PEAR/go-pear.phar" does not have a signaturePHP W 
arning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha 
r error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:/ 
wamp/bin/php/php5.3.0/PEAR/go-pear.phar on line 1236 

Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha 
r error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:/ 
wamp/bin/php/php5.3.0/PEAR/go-pear.phar on line 1236 
Press any key to continue . . .,

解决方法:

修改go-pear.bat如下:

@ECHO OFF
set PHP_BIN=php.exe
%PHP_BIN% -d phar.require_hash=0 ./PEAR/go-pear.phar 
pause

 

 

你可能感兴趣的:(错误,解决办法,go-pear.bat)