Einzelnen Beitrag anzeigen
Alt 27.09.2011, 13:10   #4 (permalink)
Mother-Brain
Hardware Freak
 
Benutzerbild von Mother-Brain
 

Registriert seit: 19.01.2009
Beiträge: 10.755

Mother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer AnblickMother-Brain ist ein wunderbarer Anblick

Standard AW: [PHP] Merkwürdiger/Unberechtigter Speicherüberlauf im PHP-Skript

Mehr RAM einbauen und max_memory_size in der php.ini erhöhen

Sehr fieß ist auch die deklaration am Anfang:

ini_set('memory_limit', '-1');

Aber kommt halt drauf an, wie die php.ini aussieht, ob das funktioniert.

Achja, du solltest auch irgendwann deine Objekte wieder "nullen" sonst hat es nix mit dem File zu tun, sondern eher damit, dass alles "in Bereitschaft" gehalten wird... muss aber nicht unbedingt sein.

Zitat:
Your script is using too much memory. This can often happen in PHP if you have a loop that has run out of control and you are creating objects or adding to arrays on each pass of the loop.
Check for infinite loops.
If that isn't the problem, try and help out PHP by destroying objects that you are finished with by setting them to null. eg. $OldVar = null;
Check the code where the error actually happens as well. Would you expect that line to be allocating a massive amount of memory? If not, try and figure out what has gone wrong...
Mother-Brain ist offline   Mit Zitat antworten
Für diesen Beitrag bedankt sich:
sofl (27.09.2011)