View Issue Details

IDProjectCategoryView StatusLast Update
0001201OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-07 15:13
Reportercsimon Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version4.1.6 revision 22740 
Summary0001201: Call time pass by reference
DescriptionHi,

method executePayment needs reference of oOrder Object. this is deprecated and should be removed. Causes warnings with efi paypal.

line 80:

    public function executePayment( $dAmount, & $oOrder )
TagsPayment
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

dainius.bigelis

2009-08-17 13:46

reporter   ~0001418

@Developers: please check from the source code side.

philipp_grashoff

2009-08-17 14:02

reporter   ~0001422

as long as the reference is done in function declaration its ok. Only referencing in function call is deprecated, see http://us2.php.net/manual/en/language.references.pass.php

In the mentioned code sample, its correct.

philipp_grashoff

2009-08-17 15:03

reporter   ~0001423

Had a look at paypal module files. in efi_paypal_oxpaymentgateway.php line 198 a reference is done in a function call:
return parent::ExecutePayment($dAmount, & $oOrder);

This should cause the warning.

csimon

2009-09-03 13:57

reporter   ~0001624

yes, posted wrong line. this was exactly what was causing the error