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

Bug #3790 Factory method accessing private member
Submitted: 2005-03-12 15:57 UTC
From: jausions Assigned: jstump
Status: Closed Package: Payment_Process
PHP Version: Irrelevant OS: Irrelevant
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 : 43 - 13 = ?

 
 [2005-03-12 15:57 UTC] jausions
Description: ------------ The factory method in Payment_Process accesses a seemingly private property of the processor instance newly created. Class inheritance doesn't matter here. The factory method works on a new instance of the processor so it shouldn't touch the private properties on that instance. The processor constructor should set that value. -Philippe

Comments

 [2005-03-23 19:20 UTC] jstump
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Please test CVS.
 [2005-03-23 23:20 UTC] jausions
This bug was regarding Payment_Process::factory() setting $this->_driver The constructor of the processor class should do that... Bug #3818 was for the Payment_Process_Result::factory() call. The two are similar but not the same ;-) -Philippe
 [2005-07-08 00:16 UTC] jstump
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.