このようなエラーが環境によっては出ると思います。
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1245184 bytes) in *** on line 2
その時は以下のように記述すれば大抵は回避できると思います。
// For some this may be of help... @ini_set('memory_limit', '128M');