# apc crashes when no file is uploaded

I was implementing a upload progress bar for my home made CMS system / no framework framework coscms using the APC cache and the rfc1867 bug using this simple progress bar example

It worked perfectly until I discovered that APC crashes when there is no file being uploaded. Firefox said: "The connection to the server was reset while the page was loading". My system is PHP 5.3.5-1ubuntu7.7 loaded as a module on apache2.

After checking the bug reports without any solution I just decided to upgrade to the latest version of the APC cache. This is quite easy. Use:

sudo pecl install apc


For this command to work you will the need the php5-dev package. I you don't have it use:

sudo aptitude install php5-dev


I got build error due to an missing pcre package. Use:

sudo aptitude install libpcre3-dev


And build again. Remember to have correct settings in your apc.ini file:

extension=apc.so
apc.rfc1867 = on


Anything worked out nicely!