Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22037

PHP override_function without the use of APD?

$
0
0

I'm trying to use override_function

http://php.net/manual/en/function.override-function.phpfrom

http://pecl.php.net/package/apdbut 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;');

Viewing all articles
Browse latest Browse all 22037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>