tekrat

Archive for November, 2008

Xdebug Connectback patch updates

  • Filed under: tech
Wednesday
Nov 26,2008

I’ve added some updates to the XDebug connect back patch.  This now includes a fix for JIT with the latest version of XDebug from Lucas.  I’ve also added a fix for a segfault when running from the commandline or when REMOTE_ADDR isn’t available.

Using ‘make test’ with PHP extensions

  • Filed under: tech
Tuesday
Nov 11,2008

It’s often the case that I want to run a ‘make test’ on some PHP extension I’m installing as a dynamic .so file.  This often fails, as the PHP INI configuration is still read from the normal places except that the .so path is changed to match that of the extension I’m working on.  This means that there are possibly a lot of unecessary errors regarding PHP’s inability to load missing extensions or trying to load the same extension twice.  The work around for this is really simple, but probably not obvious.  I discovered this a while back in an email thread to internals (thanks Marcus), but recently forgot about it until a co-worker brought up the issue for me again.  If you do run into this your best solution is going to be setting the environment variable TEST_PHP_ARGS=-n.  ie:  ‘env TEST_PHP_ARGS=-n make test‘.

Updated FatMM patches

  • Filed under: tech
Monday
Nov 10,2008

Thanks to some feedback from Luke Weber I’ve now *correctly* updated the PHP FatMM patches so they’ll actually compile ;-).   It sounds like this saved him about 6%, which is less than I expected but nothing to be ashamed of either.  Interested to hear other peoples experiences with this if they’re brave enough to try it out!