iron-io / iron_core_php

BSD 2-Clause "Simplified" License
19 stars 17 forks source link

Fixing curl upload for PHP 5.6+ #15

Open caiovlp opened 9 years ago

caiovlp commented 9 years ago

Curl safe upload is preventing laraworker to upload code to the server.

Here's where I reported the issue originally: https://github.com/iron-io/laraworker/issues/5

Setting CURLOPT_SAFE_UPLOAD resolved the issue.

thousandsofthem commented 9 years ago

Thanks, looks good! Is it safe to set this option on older php installations? (Like 5.3)

giorgiosironi commented 8 years ago

This constant has been introduced in 5.5 so it's not safe to set it for previous versions.