Weakref::release

(PECL weakref >= 0.1.0) Releases a previously acquired reference public bool Weakref::release ( void ) Releases a previously acquired reference, potentially turning a strong reference back into a weak reference. The Weakref instance maintains an internal acquired counter to track outstanding strong references. If the call to Weakref::release() is successful, this counter will be decremented by one. Once this counter rea

Weakref::get

(PECL weakref >= 0.1.0) Returns the object pointed to by the weak reference public object Weakref::get ( void ) Returns the object pointed to by the weak reference. Returns: Returns the object if the reference is still valid, NULL otherwise. See also: Weakref::valid() -

Weakref::__construct

(PECL weakref >= 0.1.0) Constructs a new weak reference public Weakref::__construct ( object $object ) Constructs a new weak reference. Parameters: object The object to reference. Returns: No value is returned. Examples: Weakref::__construct() example <?php class MyClass {     publ

Weakref::acquire

(PECL weakref >= 0.1.0) Acquires a strong reference on that object 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. Return

uopz_undefine

(PECL uopz >= 1.0.0) Undefine a constant void uopz_undefine ( string $class, string $constant ) void uopz_undefine ( string $constant ) Removes the constant at runtime Parameters: class The name of the class containing constant constant The name of an existing constant Returns:

uopz_restore

(PECL uopz >= 1.0.3) Restore a previously backed up function void uopz_restore ( string $class, string $function ) void uopz_restore ( string $function ) Restore a previously backed up function Parameters: class The name of the class containing the function to restore function The name of the function Returns:

uopz_rename

(PECL uopz >= 1.0.0) Rename a function at runtime void uopz_rename ( string $class, string $function, string $rename ) void uopz_rename ( string $function , string $rename ) Renames function to rename Note: If both functions exist, this effectively swaps their names Parameters: class The name of the class containing the function function

uopz_redefine

(PECL uopz >= 1.0.0) Redefine a constant void uopz_redefine ( string $class, string $constant, mixed $value ) void uopz_redefine ( string $constant , mixed $value ) Redefines the given constant as value Parameters: class The name of the class containing the constant constant The name of the constant value

uopz_overload

(PECL uopz >= 1.0.0) Overload a VM opcode void uopz_overload ( int $opcode, Callable $callable ) Overloads the specified opcode with the user defined function Parameters: opcode A valid opcode, see constants for details of supported codes callable A valid opcode, see constants for details of supported codes Retur

uopz_implement

(PECL uopz >= 1.0.0) Implements an interface at runtime void uopz_implement ( string $class, string $interface ) Makes class implement interface Parameters: class Makes class implement interface interface Makes class implement interface Returns: Examples: