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

Bug #4008 _list_and_parse tries to determine OS on an empty list
Submitted: 2005-03-30 17:34 UTC Modified: 2005-03-31 13:47 UTC
From: justinpatrin Assigned: toby
Status: Closed Package: Net_FTP
PHP Version: 4.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-30 17:34 UTC] justinpatrin
Description: ------------ Since the returned list is empty, _determine_os_match raises an error. I would suggest returning an empty list instead. Something like this before the if (!isset($this->_matcher)... line. if (count($dir_list) == 0) { return array('dirs' => array(), 'files' => array()); }

Comments

 [2005-03-31 13:47 UTC] toby
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 pear.php.net. In case this was a pear.php.net 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.