Allowed memory size of 268435456 bytes exhausted Problem

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.

Published 20 original articles · won praise 8 · views 50000 +

Guess you like

Origin blog.csdn.net/a26637896/article/details/101107412