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

Bug #17043 openbase_dir and new includePathFileExists method causes warings
Submitted: 2010-01-29 09:31 UTC
From: alan_k Assigned:
Status: Open Package: Validate (version 0.8.3)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
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 : 32 - 22 = ?

 
 [2010-01-29 09:31 UTC] alan_k (Alan Knowles)
Description: ------------ I could not think of a better way to hide the warnings, but this fixes the code in there. function _includePathFileExists($filename) { $paths = explode(":", ini_get("include_path")); $bd = explode(":", ini_get('open_basedir')); $result = false; foreach($paths as $val) { // silenced due to open_basedir $result = @file_exists($val . "/" . $filename); if ($result) { return true; } } return false; } }

Comments

 [2010-01-29 09:31 UTC] alan_k (Alan Knowles)
ignore the $bd= line.. it's not needed..