php 5 update

In php 5.* CURLOPT_POST must be initialized before CURLOPT_POSTFIELDS if not than will be posted a empty array