I'm trying to use override_function
http://php.net/manual/en/function.override-function.php from
http://pecl.php.net/package/apd but APD hasn't been updated since 2004 and no longer installs via PECL.
I tried to compile it using the patch listed in http://pecl.php.net/bugs/bug.php?id=16780&edit=2
It was successful but the compile directive I'm using
sudo /Applications/MAMP/bin/php5.3/bin/phpize CFLAGS='-O2 -arch i386 -arch ppc -g -Os' LDFLAGS='-O2 -arch i386 -arch ppc ' CXXFLAGS='-O2 -arch i386 -arch ppc -g -Os'
is creating a file with 64 bit architecture
/tmp/apd/apd-1.0.1: file modules/apd.so
modules/apd.so: Mach-O 64-bit bundle x86_64`
I've no idea why it's not working - but this has become a super long detour for a function I might just be able to override some other way.
override_function('header', '$a', 'echo $a;');