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

Bug #4942 fixing my own bug
Submitted: 2005-07-29 04:56 UTC
From: techtonik Assigned: farell
Status: Closed Package: PHP_CompatInfo
PHP Version: Irrelevant OS:
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 : 30 + 18 = ?

 
 [2005-07-29 04:56 UTC] techtonik
Description: ------------ array_map doesn't change subject array, therefore case insensetivity didn't work after my previous patch. sorry Test script: --------------- --- CompatInfo_old.php Fri Jul 29 07:06:56 2005 +++ CompatInfo.php Fri Jul 29 07:47:08 2005 @@ -153,9 +153,10 @@ if($dir{strlen($dir)-1} == '/' || $dir{strlen($dir)-1} == '\\') { $dir = substr($dir,0,-1); } - array_map('strtolower', $options['file_ext']); - array_map('strtolower', $options['ignore_files']); - array_map('strtolower', $options['ignore_dirs']); + $options['file_ext'] = array_map('strtolower', $options['file_ext']); + $options['ignore_files'] = array_map('strtolower', $options['ignore_files']); + $options['ignore_dirs'] = array_map('strtolower', $options['ignore_dirs']); + $files_raw = $this->_fileList($dir,$options); foreach($files_raw as $file) { if(in_array(strtolower($file),$options['ignore_files'])) {

Comments

 [2006-06-06 21:59 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.