After a lot of debugging, I finally tracked a nasty memory leak that broke our export to Excel scripts with this nice message: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4212 bytes)
I’m running PHP 4.3.10 on FreeBSD 5.4. The files that get output are between .5 MB & 6 MB. No way should PHP have used that much memory.
I contacted Zend who initially denied their products had anything to do with it. I thought it was the debugger because the difference between our development server and our production server, which didn’t throw this error, was the Zend debugger, optimizer and Zend Extension Manager.
Eventually, Zend suggested I upgrade the Zend Optimizer. I just commented out the reference to it, restarted Apache and no more errors. I may upgrade the optimizer some day but I don’t see any performance hit right now and being able to debug my code without server code induced errors is a real productivity booster.
