If you’re using Zend Server on a Mac and have tried to install the uploadprogress PECL extension, you might have noticed it didn’t work. The reason for this is that the Zend Server extensions are 32 bit and by default it’ll build the extension with the wrong architecture for Zend Server. Here are the steps you need to take to compile it correctly to make it work. Thanks to Rob Allen for having an awesome site on which Keith Pope posted an awesome comment! These instructions were tested on Snow Leopard (10.6). If you’re using 10.5, you’ll probably need to change the deployment target to 10.5 in the configure command.
% wget http://pecl.php.net/get/uploadprogress-1.0.1.tgz
% tar zxvf uploadprogress-1.0.1.tgz
% cd uploadprogress-1.0.1
% sudo -s
% phpize
% ./configure MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch i386 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch i386 -g -Os -pipe" CXXFLAGS="-arch i386 -g -Os -pipe" LDFLAGS="-arch i386 -bind_at_load"
% make
% make install
Restart your server and you should be good to go!