Weakref::acquire(Информация о версии неизвестна, возможно, только в SVN) Weakref::acquire — 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. Список параметровУ этой функции нет параметров. Возвращаемые значенияReturns TRUE if the reference was valid and could be turned into a strong reference, FALSE otherwise. Примеры
Пример #1 Weakref::acquire() example
<?phpРезультат выполнения данного примера: Unsetting o1... Unsetting o2... Destroying object!
Пример #2 Nested acquire/release example
<?phpРезультат выполнения данного примера:
Acquiring...
Unsetting...
Acquiring...
Acquiring...
Releasing...
Releasing...
Releasing...
Destroying object!
|
||