Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.2

Bug #11524 Fatal error on XP
Submitted: 2007-07-05 08:11 UTC
From: mcorne Assigned: farell
Status: Closed Package: PEAR_Info (version 1.7.0RC2)
PHP Version: 5.2.1 OS: XP
Roadmaps: 1.7.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 36 + 11 = ?

 
 [2007-07-05 08:11 UTC] mcorne (Michel Corne)
Description: ------------ I run http://localhost/pear/pearinfo.php on my browser and I get the following error: ------------- Fatal error: PEAR configuration files 'C:\WINDOWS\pear.ini', 'C:\WINDOWS\pearsys.ini' does not exist in C:\Program Files\pear\pear\PEAR\Info.php on line 215 Call Stack # Time Memory Function Location 1 0.2462 58824 {main}( ) ..(null):0 2 4.3585 2641848 PEAR_Info->__construct( ) ..(null):22 3 5.0634 2666216 trigger_error ( ) ..(null):215 ------------- Setting: $pear_dir = "C:\Program Files\pear"; in pearinfo.php does not make any difference. Analysis (attempt), in Config.php: line# 41: $PEAR_INSTALL_DIR = PEAR_INSTALL_DIR which set to C:\php5\pear, which is wrong line# 59, the env var PHP_PEAR_SYSCONF_DIR is not defined line# 61, the env var SystemRoot is defined to c:\\Windows line# 62, PEAR_CONFIG_SYSCONFDIR is set to SystemRoot line# 88, PEAR_CONFIG_DEFAULT_PHP_DIR is defined to $PEAR_INSTALL_DIR (see above) ... line# 570, $user_file is set to: PEAR_CONFIG_SYSCONFDIR . $sl . 'pear.ini', which is C:\WINDOWS\pear.ini, which is wrong since it is C:\Program Files\pear\pear.ini on my box. It looks like the package is looking for the PHP_PEAR_* env vars but there is none set. Note, that they do get set if I run: php pearinfo.php as a DOS command. I hope this helps. MC

Comments

 [2007-07-05 09:21 UTC] farell (Laurent Laville)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.