Several months back I wrote a hackish PHP extension to natively connect and talk with Thunderstone's texis SQL daemon and now it's just sitting around unused and unfinished. What I can't figure out is whether there's anyone out there who'd actually want such a beast - we were only thinking about going that route because we had a poorly deployed search index running out of texis, and replacing vortex with PHP seemed like a good idea. If I were to do it again, I'd probably go about making it a PDO driver, but instead I went the painful route...
It was never quite complete - it didn't ensure the connection was always in a usable state by buffering the results to queries, etc. and consequently if you messed up in your PHP you could get apache to segfault. And if that didn't scare you enough, there appeared to be memory leaks in the underlying texis library -- or perhaps I didn't properly read the library documentation with regard to cleaning up after yourself. I was able to hunt down most of the memory leaks using valgrind but there's still something like a 4 byte leak per query ("so what" I say).
I also have no idea what the legal status of such a beast is. It's a PHP module, and it links against Thunderstone's libtexis and uses its API, so I have no idea if one could legally distribute this at all.
If that all doesn't scare you and you're interested in working on this, let me know by dropping me an email - daniel at papasian dot org, and we can see if we can get an open source project out of it.
- Danny's blog
- Login or register to post comments