phpspec/phpspec — Issue #75: Unable to install via PEAR
Author: miccheng
Created: 2012-02-23 19:15:52+00:00
State: open

I am unable to install PHPSpec with PEAR.

Here's the error:

[root@localhost ~]# pear channel-discover pear.phpspec.net
Adding Channel "pear.phpspec.net" succeeded
Discovery of channel "pear.phpspec.net" succeeded
[root@localhost ~]# pear install phpspec/PHPSpec

Notice: unserialize(): Error at offset 0 of 418 bytes in PEAR/REST/10.php on line 288
PHP Notice: unserialize(): Error at offset 0 of 418 bytes in /usr/share/pear/PEAR/REST/10.php on line 288
PHP Stack trace:
PHP 1. {main}() /usr/share/pear/pearcmd.php:0
PHP 2. PEAR_Command_Common->run() /usr/share/pear/pearcmd.php:305
PHP 3. PEAR_Command_Install->doInstall() /usr/share/pear/PEAR/Command/Common.php:271
PHP 4. PEAR_Downloader->download() /usr/share/pear/PEAR/Command/Install.php:661
PHP 5. PEAR_Downloader_Package->initialize() /usr/share/pear/PEAR/Downloader.php:279
PHP 6. PEAR_Downloader_Package->_fromString() /usr/share/pear/PEAR/Downloader/Package.php:190
PHP 7. PEAR_Downloader->_getPackageDownloadUrl() /usr/share/pear/PEAR/Downloader/Package.php:1713
PHP 8. PEAR_REST_13->getDownloadURL() /usr/share/pear/PEAR/Downloader.php:850
PHP 9. PEAR_REST_10->_returnDownloadURL() /usr/share/pear/PEAR/REST/13.php:142
PHP 10. unserialize() /usr/share/pear/PEAR/REST/10.php:288
SECURITY ERROR: package in channel "pear.phpspec.net" retrieved another channel's name for download! ("pear.php.net")
install failed
[root@localhost ~]#

Environment:
- OS: CentOS 6.2

PHP 5.3.3 (cli) (built: Jan 11 2012 19:53:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans

PEAR Version: 1.9.4
PHP Version: 5.3.3
Zend Engine Version: 2.3.0
Running on: Linux localhost.localdomain 2.6.32-220.4.1.el6.x86_64 #1 SMP Tue Jan 24 02:13:44 GMT 2012 x86_64

Thanks.