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 07:22 UTC
From: funaki Assigned: ttsuruoka
Status: Closed Package: Services_Amazon (version 0.7.0)
PHP Version: 5.2.1 OS: Linux
Roadmaps: (Not assigned)    

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 46 - 9 = ?

 [2007-04-22 07: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', ''); //$amazon->setLocale('jp'); print_r($amazon); Expected result: ---------------- get an error, Invalid locale parameter "us". Valid locales are: jp


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