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

Bug #4021 PEAR_Config file_exists can cause warnings
Submitted: 2005-03-31 21:18 UTC
From: kluge at ira dot uka dot de Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.3.1 OS: linux
Roadmaps: (Not assigned)    
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:
Solve the problem : 34 + 8 = ?

 [2005-03-31 21:18 UTC] kluge at ira dot uka dot de
Description: ------------ in PEAR/PEAR/Config.php on line 426 and 429 (pear version 1.3.5) - dissable warnings with @file_exists(..) will give no warnings if you have some hard restrictions for file operations: supposed changed line 426: if ($user_file && @file_exists($user_file)) { supposed changed line 429: if ($system_file && @file_exists($system_file)) { Reproduce code: --------------- if ($user_file && @file_exists($user_file)) { $this->readConfigFile($user_file); } if ($system_file && @file_exists($system_file)) { $this->mergeConfigFile($system_file, false, 'system'); } Expected result: ---------------- it will not send warnings anymore - so you can see images!!! Actual result: -------------- output of warnings when file operations are restricted to specific directories


 [2005-04-02 23:40 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.