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

Bug #10022 list filename
Submitted: 2007-02-04 07:11 UTC Modified: 2007-02-22 18:38 UTC
From: remiss at gmail dot com Assigned: itrebal
Status: Closed Package: Net_MPD (version 1.0.0)
PHP Version: Irrelevant OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-02-04 07:11 UTC] remiss at gmail dot com (Roger Bystrøm)
Description: ------------ When executing getMetadata you have to specify "filename" as first paramter, but mpd returns 'file' as response Test script: --------------- print_r($db->getMetadata("filename")); print_r($db->getMetadata("file")); Expected result: ---------------- the result Actual result: -------------- nothing.. errors though :p

Comments

 [2007-02-04 07:25 UTC] remiss at gmail dot com
s/list/list/
 [2007-02-06 15:23 UTC] remiss at gmail dot com
Maybe a little unclear bug-report, however this means that after the output has been parsed the getMetadata function will try to return output['filename'] when it should be returning output['file'] and when specifying 'file' as parameter it won't find anything..
 [2007-02-22 18:38 UTC] itrebal (Graham Christensen)
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.