ZF-2056: Not possible to fetch tracks from amazon via Zend_Service_Amazon when there's more than one disc

Issue Type: Bug Created: 2007-10-10T12:14:25.000+0000 Last Updated: 2008-11-15T08:41:58.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Johannes Schill (johannes) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Service_Amazon

Related issues: Attachments:


The variable gets overwritten when there's more than one disc.

Row 154-158 in Zend_Service_Amazon_Item:

<pre class="highlight">
foreach ($result as $disk) {
    foreach ($xpath->query('./*/text()', $disk) as $t) {
        $this->Tracks[$disk->getAttribute('number')] = (string) $t->data;


Posted by Johannes Schill (johannes) on 2007-10-10T12:57:20.000+0000

Ok, this was my first issue, sorry for the [code]. I hope you understand anyway.

Instead of: $this->Tracks[$disk->getAttribute('number')] = (string) $t->data;

It should be: $this->Tracks[$disk->getAttribute('number')][] = (string) $t->data;

Posted by Thomas Weidner (thomas) on 2007-10-15T13:58:32.000+0000

Assigned to Darby

Posted by Wil Sinclair (wil) on 2008-03-21T17:05:34.000+0000

This issue should have been fixed for the 1.5 release.

Posted by Wil Sinclair (wil) on 2008-04-18T13:11:59.000+0000

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Posted by Benjamin Eberlei (beberlei) on 2008-11-15T08:41:58.000+0000

Will be fixed in 1.8 or as of trunk revision r12666.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.