FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17487&edit=1

ID: 17487
Updated by: daniel.oconnor@gmail.com
Reported By: MrFixIt at VegasWebRepair dot com
Summary: File_XSPF::setLocation($location) Bug
-Status: Feedback
+Status: Closed
Type: Bug
Package: File_XSPF
Package Version: 0.2.1
PHP Version: Irrelevant
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-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.




Previous Comments:
------------------------------------------------------------------------

[2010-06-13 21:51:43] vegaswebrepair

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

------------------------------------------------------------------------

[2010-06-12 11:56:14] doconnor

-Status: Open
+Status: Feedback
Got a test script that demonstrates why?

------------------------------------------------------------------------

[2010-06-12 05:07:23] vegaswebrepair

Description:
------------
Line 862 currently is:
if (File_XSPF::_validateURL($location->_url)) {


Line 862 should be:
if (File_XSPF::_validateURL($location)) {

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 29, '11 at 2:46p
activeMay 29, '11 at 2:46p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase