Hoa central
Static Public Member Functions | List of all members
Hoa\Memory\GarbageCollector Class Reference

Static Public Member Functions

static enable ()
 
static disable ()
 
static isEnabled ()
 
static collect ()
 

Detailed Description

Class .

Manage the PHP Garbage Collector. Please, read http://www.research.ibm.com/people/d/dfb/papers/Bacon03Pure.pdf to know more about its behavior.

Author
Ivan Enderlin ivan..nosp@m.ende.nosp@m.rlin@.nosp@m.hoa-.nosp@m.proje.nosp@m.ct.n.nosp@m.et

Definition at line 62 of file GarbageCollector.php.

Member Function Documentation

static Hoa\Memory\GarbageCollector::collect ( )
static

Force collection of any existing garbage cycles.

public

Returns
int

Definition at line 103 of file GarbageCollector.php.

103  {
104 
105  return gc_collect_cycles();
106  }
static Hoa\Memory\GarbageCollector::disable ( )
static

Disactive the garbage collector.

public

Returns
void

Definition at line 81 of file GarbageCollector.php.

81  {
82 
83  return gc_disable();
84  }
static Hoa\Memory\GarbageCollector::enable ( )
static

Active the garbage collector.

public

Returns
void

Definition at line 70 of file GarbageCollector.php.

70  {
71 
72  return gc_enable();
73  }
static Hoa\Memory\GarbageCollector::isEnabled ( )
static

Return the circular reference collector status.

public

Returns
bool

Definition at line 92 of file GarbageCollector.php.

92  {
93 
94  return gc_enabled();
95  }

The documentation for this class was generated from the following file: