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

Bug #17487 File_XSPF::setLocation($location) Bug
Submitted: 2010-06-12 09:07 UTC
From: vegaswebrepair Assigned: doconnor
Status: Closed Package: File_XSPF (version 0.2.1)
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 : 37 + 19 = ?

 
 [2010-06-12 09:07 UTC] vegaswebrepair (Gary K. Nitzberg)
Description: ------------ Line 862 currently is: if (File_XSPF::_validateURL($location->_url)) { Line 862 should be: if (File_XSPF::_validateURL($location)) {

Comments

 [2010-06-12 15:56 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
Got a test script that demonstrates why?
 [2010-06-14 01:51 UTC] vegaswebrepair (Gary K. Nitzberg)
require_once('PEAR.php'); require_once('File/XSPF.php'); $xspf =& new File_XSPF(); $xspf-> setLicense('http://www.mydomain.com/'); $xspf-> setLocation('http://www.yourdomain.com/'); $xspf-> toFile('test.xspf'); // The current code for 'void setLocation( string $location)' will not create a <location> tag, because the location is not properly saved. // According to the spec this should work exactly like the 'void setLicense( string $license)' function // see test.xspf results
 [2011-05-29 19:45 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. 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.