Pear / php update – pear.php.net is using a unsupported protocal
and you get some wonderful error message such as: Notice: Undefined variable: dorest in PEAR/Command/Install.php on line 1220
Sometimes it happens…
Solution: locate the .channels/ directory
For ubuntu with Zend-CE 5.2 it’s in /usr/local/zend/share/pear/.channels/
And delete everything in there
sudo rm /usr/local/zend/share/pear/.channels/*
then do a fresh pear update-channels to reconstruct the serialized cache file in .channels/
sudo pear update-channels
if you also want to also install phpunit
cd /usr/local/zend/bin/
sudo ./pear channel-discover pear.phpunit.de
sudo ./pear install phpunit/PHPUnit


