Archives

July, 2014

pecl_http 2.x example

Previously, I was using pecl_http 1.7.6 and life was easy – all I was using (and needed) was the http_get() API.  However, v2 of the API was completely overhauled.  Gone are the static, c-style APIs, instead replaced with a full object-oriented API.  One could argue that this change was long overdue, but it was a jarring change – the old APIs weren’t simply deprecated, they were removed.

Read more →

Unable to load http.so

Fortunately, it doesn’t happen too often, but every now and again I rub elbows with downright infuriating problems in the OSS world.  If you go off the reservation (off the ‘rez), and attempt to make unsupported configurations work, you expect these types of things.  But when you’re targeting a basic, happy path use case, you don’t.  Thus began my 3+ day excursion into getting pecl_http to work with PHP 5.5…

Read more →