CURLCLOSEPOLICY_LEAST_received_在PHP5.6.4中不再定义:用其他内容替换还是注释掉引用更好?

CURLCLOSEPOLICY_LEAST_received_在PHP5.6.4中不再定义:用其他内容替换还是注释掉引用更好?,php,wordpress,curl,Php,Wordpress,Curl,我刚刚将我的PHP应用程序(WooCommerce,Wordpress之上)移动到使用PHP5.6.4的服务器上,收到以下警告: Warning: curl_setopt() expects parameter 2 to be long, string given in /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/woocommerce-amazon-s3-storage/amazon_sdk/lib/reque

我刚刚将我的PHP应用程序(WooCommerce,Wordpress之上)移动到使用PHP5.6.4的服务器上,收到以下警告:

Warning: curl_setopt() expects parameter 2 to be long, string given in /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/woocommerce-amazon-s3-storage/amazon_sdk/lib/requestcore/requestcore.class.php on line 610
就我所见,当我试图引用这个内置的var
CURLCLOSEPOLICY\u至少\u最近使用的
,它在PHP5.6上不再定义时,就会发生这种情况

替换为
CURLCLOSEPOLICY\u laster
还是注释掉
curl\u setopt($handle,CURLOPT\u CLOSEPOLICY,CURLCLOSEPOLICY\u last\u最近使用的)
set

CURLOPT\u CLOSEPOLICY\uu*值之一。注:此 选项已被弃用,因为它从未在cURL中实现过,也从未实现过 没有任何影响


只需删除这一行即可

tnx分配,以确保速度和清晰度:)