PHP 5.6.0RC3 is available

Garbage Collection

Indice dei contenuti

This section explains the merits of the new Garbage Collection (also known as GC) mechanism that is part of PHP 5.3.

add a note add a note

User Contributed Notes 1 note

neo22s at gmail dot com
2 years ago
Memory cleanup for long-running scripts.

(); // Enable Garbage Collector
var_dump(gc_enabled()); // true
var_dump(gc_collect_cycles()); // # of elements cleaned up
gc_disable(); // Disable Garbage Collector
To Top