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

Bug #14437 openbasedir warning when loading config
Submitted: 2008-08-02 15:56 UTC
From: tias Assigned: dufuz
Status: Closed Package: PEAR (version 1.7.2)
PHP Version: Irrelevant OS:
Roadmaps: 1.8.0alpha1    

 [2008-08-02 15:56 UTC] tias (Tias Guns)
Description: ------------ When creating a PEAR_Config object with a given $user_file, PEAR will try to find the $system_file and test if it exists. When using openbasedir this test will fail, but it also emits a warning, this behaviour is very annoying when using PEAR_Frontend_Web. The solution is to add an @ before the file_exists call, the function still fails but no irrelevant warning is given. change PEAR/Config.php, line 625: if ($system_file && file_exists($system_file)) { to: if ($system_file && @file_exists($system_file)) { Thanks, Tias


 [2008-08-02 16:15 UTC] tias (Tias Guns)
here's another one: Config.php line 87: if (file_exists($PEAR_INSTALL_DIR) && is_dir($PEAR_INSTALL_DIR)) { should be changed into if (@file_exists($PEAR_INSTALL_DIR) && is_dir($PEAR_INSTALL_DIR)) {
 [2008-08-14 21:07 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.