| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
The WeakRef class(PECL weakref >= 0.1.0) 導入The WeakRef class provides a gateway to objects without preventing the garbage collector from freeing those objects. It also provides a way to turn a weak reference into a strong one. クラス概要
WeakRef
{
/* メソッド */
}例
例1 WeakRef usage example
<?php上の例の出力は以下となります。
Object still exists!
object(MyClass)#1 (0) {
}
Destroying object!
Object is dead!
目次
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「The WeakRef class」をGoogle検索
|