iron-io / iron_mq_php

PHP client for IronMQ.
www.iron.io
BSD 2-Clause "Simplified" License
89 stars 43 forks source link

PHP& Upgrade - Disabling safe uploads is no longer supported #73

Closed ericvanjohnson closed 6 years ago

ericvanjohnson commented 8 years ago

Started getting the following error message after upgrading to PHP7

Error Message

vendor/iron-io/iron_core/IronCore.class.php:257 curl_setopt(): Disabling safe uploads is no longer supported

This is a Laravel 5.1 application and I installed with composer the pacakge "iron-io/iron_mq": "~1.5"

This Exception is being thrown when I attempt to add to the Queue.

I Googled and found a similar issue on the dirkgroenen/Pinterest-API-PHP Repo and his solution

thousandsofthem commented 8 years ago

Thanks! Testing the solution

thousandsofthem commented 8 years ago

@ericvanjohnson updated iron_core package, new version released.

aik099 commented 8 years ago

Strange, but curl_setopt function documentation page (see http://php.net/manual/en/function.curl-setopt.php) doesn't say, that in PHP 7 you no longer can set CURLOPT_SAFE_UPLOAD option.

michaelbutler commented 8 years ago

Yes, PHP.net really needs to update their documentation.