According to the online way before I set php.ini memory_limit or directly ini_set ( "memory_limit", "256M"), found that this is simply a temporary solution, now also = 256M can not meet, and this continues data will become increasingly greater.
Then look at the offending code, really want this solution, still have the code according to their own point of view .
My problem here is to set up a static variable, static variable in the constructor query all the data of a data table, over time, causing memory overflow.