Visions of Aestia

22 Sep 2005

SWIG vs PHP

Filed under: PlanetRDF — JBowtie @ 11:08 am

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).

3 Responses to “SWIG vs PHP”

  1. Daniel O'Connor Says:

    :(

    I gotta say I’d love to see these bindings for PHP5… but I think I can wait for SWIG to play catch up.

  2. Dave Beckett Says:

    I had a look on the SWIG list for PHP5 support references and it doesn’t look like it’ll be happening anytime soon.

  3. Eric Hanson Says:

    Ever have any luck with PHP5 bindings? I’m in the need.

    Reason #56 to switch to ruby…

Leave a Reply

Powered by WordPress