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

Bug #9352 Bug on _dirCheck function over nfs path
Submitted: 2006-11-16 12:12 UTC
From: tobia dot caneschi at register dot it Assigned: cellog
Status: Closed Package: Archive_Tar (version 1.3.1)
PHP Version: 5_2 CVS-2006-11-16 OS: Linux Slackware
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-16 12:12 UTC] tobia dot caneschi at register dot it (Tobia Caneschi)
Description: ------------ Over nfs filesystem is_dir caching return 0 on certain existent directory. the next mkdir exit the extract process improperly. ..... function _dirCheck($p_dir) { //bug fix start clearstatcache(); //bug fix end if ((@is_dir($p_dir)) || ($p_dir == '')) return true; if (($p_parent_dir != $p_dir) && ($p_parent_dir != '') && (!$this->_dirCheck($p_parent_dir))) { return false; } if (!@mkdir($p_dir, 0777)) { $this->_error("Unable to create directory '$p_dir'"); return false; } return true; } .....

Comments

 [2006-12-20 20:49 UTC] cellog (Greg Beaver)
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.