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

Request #15472 driver instances should inherit options
Submitted: 2008-12-31 16:57 UTC
From: orensol Assigned: izi
Status: Closed Package: Services_Twitter (version 0.2.0)
PHP Version: 5.2.4 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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:
MUST BE VALID
Solve the problem : 5 + 38 = ?

 
 [2008-12-31 16:57 UTC] orensol (Oren Solomianik)
Description: ------------ Right now when the Twitter.php factory builds an instance of an API driver (like statuses), it instantiates a new object. This object disregards any options that were set on the Twitter object. Test script: --------------- $twitter = new Services_Twitter($username,$password); $twitter->setOption('source','myapp'); $result = $twitter->statuses->update('I just used Services_Twitter!'); Expected result: ---------------- Expected twit to be sent with parameter source => myapp. Actual result: -------------- Source overwritten in the request params, because $twitter->statuses instantiated a new object.

Comments

 [2009-08-18 13:43 UTC] cweiske (Christian Weiske)
-Status: Assigned +Status: Open
 [2009-08-26 18:30 UTC] izi (David Jean Louis)
-Status: Open +Status: Closed -Assigned To: +Assigned To: izi
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.