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: Open
+Status: Feedback
Type: Bug
Package: File_XSPF
Package Version: 0.2.1
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

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


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

[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

  • Mrfixit at Jun 13, 2010 at 8:59 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17487&edit=1

    ID: 17487
    Updated by: MrFixIt@VegasWebRepair.com
    Reported By: MrFixIt at VegasWebRepair dot com
    Summary: File_XSPF::setLocation($location) Bug
    Status: Feedback
    Type: Bug
    Package: File_XSPF
    Package Version: 0.2.1
    PHP Version: Irrelevant
    Roadmap Versions:
    New Comment:

    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


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

    [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)) {

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 12, '10 at 11:03a
activeJun 13, '10 at 8:59p
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Mrfixit: 1 post

People

Translate

site design / logo © 2022 Grokbase