PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_Info » Bug #5457

Broken PEAR_Info

Details

Submitted2005-09-19 17:04 UTC
FromDerek dot Simkowiak at panasonic dot aero
Assignedfa
StatusClosed
PackagePEAR_Info
PHP Version5.0.5
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-09-19 17:04 UTC] Derek dot Simkowiak at panasonic dot aero

Description:
------------
I have installed XAMPP for Windows and I'm trying to figure out what version of PEAR that came with it. I tried running PEAR_Info::show() but it dies.

Test script:
---------------
<?php

require_once "PEAR/Info.php";
$info = new PEAR_Info();
$info->show();

?>

Expected result:
----------------
All of the PEAR_Info.

Actual result:
--------------
It shows the PEAR Credits but dies at PEAR Packages. Here is a cut'n'paste from my browswer:

-----------------------
PEAR
PEAR Credits
PEAR Config
bin_dir C:\php5
cache_dir C:\WINDOWS\TEMP\pear\cache
cache_ttl 3600
data_dir C:\php5\pear\data
doc_dir C:\php5\pear\docs
ext_dir C:\Program Files\xampp\php\ext\
master_server pear.php.net
php_bin C:\php5\php.exe
php_dir C:\php5\pear
preferred_state stable
sig_bin c:\gnupg\gpg.exe
sig_keydir C:\WINDOWS\pearkeys
sig_type gpg
test_dir C:\php5\pear\tests
umask 0
verbose 1

PEAR Packages
Index

Warning: Invalid argument supplied for foreach() in C:\Program Files\XAMPP\php\pear\PEAR\Info.php on line 235
|

-----------------------

This looks like it may be the same root cause at this bug in PEAR::Auth:

http://pear.php.net/bugs/bug.php?id=4371

It results in a similar error message. Do you need to add an is_array()?

[2005-10-07 09:35 UTC] dudus at nomade dot fr

I have the same probleme with Debian Sarge and php 5.0.5.

Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Info.php on line 235

[2005-10-19 23:39 UTC] jens at codes-concepts dot com

Same here.

Fresh pear install under php-5.1 with

lynx -source http://go-pear.org/ | php

and only installed PEAR_Info