C:\php>go-pear.bat
在Windows上使用PHP安裝PEAR時遇到錯誤
Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\php\PEAR\go-pear.phar on line 1236
解決方法:
修改php.ini
找到
;phar.require_hash = On
改成
phar.require_hash = Off
再安裝一次
C:\php>go-pear.bat
就可以跑了~