iron-io / iron_mq_php

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

Make compatible with Google App Engine by providing an alternative to Curl #36

Closed tscheepers closed 10 years ago

tscheepers commented 10 years ago

I'm trying to use Iron MQ with my Laravel application which is deployed to Google App Engine. However it seems that Google App Engine does not support curl. I've added my star to their issue (https://code.google.com/p/googleappengine/issues/detail?id=9343).

I was wondering if you could detect if Curl is available in your library, and if it isn't you could use file_get_contents. Just like the guys at Pusher did: https://github.com/pusher/pusher-php-server/pull/14.

My log:

PHP Fatal error:  Call to undefined function curl_init() in /base/data/home/apps/s~clickin-c1/one.377575534782007565/vendor/iron-io/iron_core/IronCore.class.php on line 191

production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to undefined function curl_init()' in /base/data/home/apps/s~clickin-c1/one.377575534782007565/vendor/iron-io/iron_core/IronCore.class.php:191 Stack trace: #0 [internal function]: Illuminate\Exception\Handler->handleShutdown() #1 {main} [] []
treeder commented 10 years ago

@thousandsofthem this seems like a good idea, what do you think?