Click to See Complete Forum and Search --> : [RESOLVED] Installing PEAR array errors


Blulagoon
04-15-2007, 01:31 PM
I've installed PEAR before on a number of machines, but haven't installed it on my new development Windows XP box, running Apache/2.2.3 (Win32) PHP/5.2.0

Until now that is. I ran go-pear.bat from the command window which worked fine, typed in local for local install, confirmed by typing yes and then accepted the default directories by pressing enter.

The error I get is:
PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

This is followed by a number of identical errors in other files, Tar.php for example on lines 2334 and 2338.

My other development box runs PHP 5.1.2 and IIS 6.0 and installed PEAR just fine. Any ideas what the problem might be ?

Blu

bradgrafelman
04-15-2007, 03:16 PM
Very odd... have you tried re-downloading PHP5 and replacing go-pear.bat and the PEAR directory on your server with fresh copies?

Blulagoon
04-15-2007, 04:36 PM
As you say Brad, very odd indeed. However I've downloaded PHP 5.2.1 and unzipped it into my C:\php5 directory overwriting exisiting files.

go-pear.bat worked as expected and have now installed the DB package. However one oddity, despite rebooting PC, phpinfo() still shows install as 5.2.0

Anyway, marking thread as resolved as installing Pear has been achieved. Thanks for your input.

Blu

edit: Just looked at apache monitor and that shows PHP 5.2.1