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,