Bug #5457 [NEW]: Broken PEAR_Info

From: Date: Mon, 19 Sep 2005 17:04:12 +0000
Subject: Bug #5457 [NEW]: Broken PEAR_Info
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6861@lists.php.net to get a copy of this message
From: Derek dot Simkowiak at panasonic dot aero Operating system: Windows XP PHP version: 5.0.5 Package: Documentation Bug Type: Bug Bug description: Broken PEAR_Info 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()? -- Edit bug report at http://pear.php.net/bugs/bug.php?id=5457&edit=1 --

« previous php.pear.doc (#6861) next »