Bug #19309 [Opn->Dup]: Uncaught exception
| From: | daniel dot oconnor at gmail dot com | Date: | Sat, 03 Mar 2012 10:06:37 +0000 |
| Subject: | Bug #19309 [Opn->Dup]: Uncaught exception | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8351@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19309&edit=1
ID: 19309
Updated by: daniel.oconnor@gmail.com
Reported By: derdoc at gmail dot com
Summary: Uncaught exception
-Status: Open
+Status: Duplicate
Type: Bug
Package: Services_YouTube
Operating System: OSX
Package Version: 0.2.2
PHP Version: 5.3.8
Roadmap Versions:
New Comment:
-Status: Open
+Status: Duplicate
Bug #19308
Previous Comments:
------------------------------------------------------------------------
[2012-02-27 09:14:02] derdoc
Description:
------------
I get an error when I try to list the tags.
which is caused by an malformed request response from
google.
That is google tells me that 'Your client has issued a malformed
or illegal request. '
Test script:
---------------
require_once 'Services/YouTube.php';
$dev_id = "";
$tag = "test";
$youtube = new Services_YouTube($dev_id, array('useCache' => true));
$videos = $youtube->listByTag($tag);
foreach ($videos->xpath('//video') as $i => $video) {
print "<img src='{$video->thumbnail_url}'
alt='{$video->title}'
/>\n";
print "<a href='{$video->url}'>URL</a><br />\n";
}
Expected result:
----------------
List of tags
Actual result:
--------------
"Services_YouTube_Exception: simplexml_load_string(): Entity:
line 2: parser error : AttValue: " or ' expected in unknown on
line unknown
Exception trace
# Function Location
0 Services_YouTube_Exception::errorHandlerCallback(2,
'simplexml_load_sâ¦', '/usr/local/pear/â¦', 599, Array)
unknown:unknown
1 simplexml_load_string('<!DOCTYPE html> â¦')
/usr/local/pear/share/pear/Services/YouTube.php:5 in
/usr/local/p.."
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19309&edit=1