由於 appserv 2.5.7 裝完後,在 dos 下一執行 php.exe 就會出現debug 的對話方塊,就下載 php5.2.0 把 appserv內的 php5.1.6 替換過來,不過,要安裝 PEAR 時卻發生一堆警告訊息:
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.11.tar...
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.t
ar', invalid or missing package file
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.
tar', invalid or missing package file
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.11.tar', i
nvalid or missing package file
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 429
install failed
Press any key to continue . . .
後來在網路上查到,可以至 http://snaps.php.net 下載再新的 php 版本,再把裡頭的 PEAR 複製過來,重新執行 go-pear.bat,就沒有問題了。
而且擾人的debug對話方塊也在換成 5.2之後就消失不見了!