This morning i wanted to play around with firePHP a bit. And wanted to install the PEAR package. When i found out i didn’t have PEAR running on my local (win32 xp) box. So off to the pear install. The first thing i notice was that PEAR now is packaged as a nice PHAR file (PHP 5.2.6) . So i hoped the install process would be smoother then normally. This was not the case. First thing i did was run the go-pear.bat file. Which resulted in an error.
phar “[path]go-pear.phar” does not have a signature Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha r “[path]go-pear.phar” does not have a signature in [path]\PEAR\go-pear.phar on line 1236
Fatal error: require_once(): Failed opening required ‘phar://go-pear.phar/index. php’ (include_path=’.;[path][path]\PEAR’) in [path]\PEAR\go-pear.phar on line 1236
Ok. So that didn’t work out like i wanted. I checked the go-pear.bat file. And copied the command to windows command line. This resulted in the same error. So i thought. Let’s try this from the PEAR directory. cd PEAR and let’s try that again.
php.exe -d phar.require_hash=0 go-pear.phar
Now the PEAR install runs fine.
For more information about PEAR, see:
Thanks for using go-pear!
Although this solution seems to have resolved the problem for me. Cal Evans has a good post how to resolve this issue as well. My workaround didn’t solve the problem for Cal but his did for me. So here’s the link