Bug #17487 [Fbk]: File_XSPF::setLocation($location) Bug

From: Date: Sun, 13 Jun 2010 21:51:43 +0000
Subject: Bug #17487 [Fbk]: File_XSPF::setLocation($location) Bug
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-3937@lists.php.net to get a copy of this message
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)) { ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17487&edit=1

« previous php.pear.bugs (#3937) next »