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  


 [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.