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 1236Fatal 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:
http://pear.php.net/faq.php
http://pear.php.net/manual/
Thanks for using go-pear!
Update *
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








Thijs Lensselink is a 30 year old Web developer from The Netherlands.
With more then 10 years experience in the field of building and maintaining PHP
based web applications. Currently he works as a Freelance Web Developer under ...
[...] some quick googeling around found me this possible solution from Thijs Lensselink. I tried it, nope, would not work. However, it did lead me down the correct [...]
XAMPP, PHP 5.3, PEAR, and PHAR (what a mess) | Postcards From My Life
11 Jul 09 at 15:38
[...] some quick googeling around found me this possible solution from Thijs Lensselink. I tried it, nope, would not work. However, it did lead me down the correct [...]
XAMPP, PHP 5.3, PEAR, and PHAR (what a mess) – techPortal
11 Jul 09 at 23:01
[...] decision on the platform (XAMPP), version of PHP to use and some googling around that lead him to this and this to help resolve his problem. It turns out that, if that’s on, for security [...]
Cal Evans’ Blog: XAMPP, PHP 5.3, PEAR, and PHAR (what a mess) | DreamNest - Technology | Web | Net
13 Jul 09 at 17:00
[...] – decision on the platform (XAMPP), version of PHP to use and some googling around that lead him to this and this to help resolve his problem. It turns out that, if that’s on, for security [...]
Cal Evans’ Blog: XAMPP, PHP 5.3, PEAR, and PHAR (what a mess) | Webs Developer
13 Jul 09 at 17:02
It worked for me. I had to add the php folder to the windows path first.
Thanks!
juanito
29 Dec 09 at 15:38
I will add your blog to my RSS Feed! Thx.
Gorden
9 Apr 10 at 20:43