downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

参照カウント法の原理> <INI 設定
[edit] Last updated: Fri, 26 Apr 2013

view this page in

ガベージコレクション

目次

このセクションでは、PHP 5.3 の一部の、新しいガベージコレクション(別名GC)機構の メリットを説明します。



add a note add a note User Contributed Notes ガベージコレクション - [1 notes]
up
-1
neo22s at gmail dot com
1 year ago
Memory cleanup for long-running scripts.

<?php
gc_enable
(); // Enable Garbage Collector
var_dump(gc_enabled()); // true
var_dump(gc_collect_cycles()); // # of elements cleaned up
gc_disable(); // Disable Garbage Collector
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites