array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'function.gc-enabled.php', 1 => 'gc_enabled', 2 => 'Returns status of the circular reference collector', ), 'up' => array ( 0 => 'ref.info.php', 1 => 'PHP Options/Info Funzioni', ), 'prev' => array ( 0 => 'function.gc-enable.php', 1 => 'gc_enable', ), 'next' => array ( 0 => 'function.gc-mem-caches.php', 1 => 'gc_mem_caches', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/info/functions/gc-enabled.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

gc_enabled

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

gc_enabledReturns status of the circular reference collector

Descrizione

gc_enabled(): bool

Returns status of the circular reference collector.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns true if the garbage collector is enabled, false otherwise.

Esempi

Example #1 A gc_enabled() example

<?php
if(gc_enabled()) gc_collect_cycles();
?>

Vedere anche: