Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.0

Bug #10804 setLocale() and constructor bug
Submitted: 2007-04-22 02:22 UTC Modified: 2007-12-17 10:15 UTC
From: funaki Assigned: ttsuruoka
Status: Closed Package: Services_Amazon (version 0.7.0)
PHP Version: 5.2.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-22 02:22 UTC] funaki (Nob Funaki)
Description: ------------ Amazon.php line 131, $this->_locale = $this->setLocale($locale); however setLocale() return void. Then $this->_locale will be empty. Test script: --------------- <?php require_once 'Services/Amazon.php'; $amazon = new Services_Amazon('***', '***', 'jp', 'http://xml.amazon.co.jp/onca/xml2'); //$amazon->setLocale('jp'); print_r($amazon); Expected result: ---------------- get an error, Invalid locale parameter "us". Valid locales are: jp

Comments

 [2007-12-17 10:15 UTC] ttsuruoka (Tatsuya Tsuruoka)
This has been fixed in 0.7.1. Thank you for reporting and sending a patch!