fix the bug of curl_setopt

curl_setopt will  modify the type of param
the bugs is here: https://bugs.php.net/bug.php?id=67704