Weakref::acquire

Weakref::acquire

(PECL weakref >= 0.1.0)

Weakref::acquireAcquires a strong reference on that object

Description

public bool Weakref::acquire ( void )

Acquires a strong reference on that object, virtually turning the weak reference into a strong one.

The Weakref instance maintains an internal acquired counter to track outstanding strong references. If the call to Weakref::acquire() is successful, this counter will be incremented by one.