Forums / Addon Payment Modules / DPS Pxpay warning after upgrading to php 5.3

DPS Pxpay warning after upgrading to php 5.3

Views: 943

Results 1 to 1 of 1
19 May 2012, 8:16 AM
#1
tone2 avatar

tone2

New Zenner

Join Date:
Dec 2008
Location:
New Zealand
Posts:
18
Plugin Contributions:
0

DPS Pxpay warning after upgrading to php 5.3

DPS pxpay module was working just fine with php 5.2, but after updating to a new server which uses php 5.3 I have noticed this warning generated by zencart error logging:

PHP Warning: curl_setopt() expects parameter 2 to be long, string given

It refers to this line curl_setopt($curl, CURLOPT_POSTFIELDSIZE, 0); in the file /includes/modules/payment/dps_pxpay.php

From what I can tell CURLOPT_POSTFIELDSIZE is not recognised as a field anymore and php views it is a string rather than a field.

Has anyone else had this issue and knows how to fix it / work around?

Thanks,