SWIG vs PHP
So, the experimental PHP bindings I put up dont’ work. It took some digging, but I think I’ve figured out why.
Most of the bindings are SWIG-generated; that’s the simplest way to maintain multiple language bindings to C libraries, and it doesn’t require you to know much about the target languages.
However, it turns out that PHP support in SWIG has been largely unmaintained. So the Redland bindings are generated for PHP4, the last version supported by SWIG; unfortunately, I went ahead and compiled against the PHP5 libraries. Oops - my fault for grabbing the latest stable version, apparently.
Now, I’ll of course spend the next couple of days attempting to build some PHP4 bindings on Windows. However, if someone wants to use this with PHP5, they’ll have to step up and roll something by hand. I’m not a PHP developer by any stretch of the imagination, nor do I want to learn; I have enough trouble just configuring the PHP apps I do use (Wordpress and MediaWiki).
September 22nd, 2005 at 1:16 pm
:(
I gotta say I’d love to see these bindings for PHP5… but I think I can wait for SWIG to play catch up.
September 23rd, 2005 at 12:41 pm
I had a look on the SWIG list for PHP5 support references and it doesn’t look like it’ll be happening anytime soon.
February 22nd, 2006 at 9:58 am
Ever have any luck with PHP5 bindings? I’m in the need.
Reason #56 to switch to ruby…