diff --git a/tests/weakref_007.phpt b/tests/weakref_007.phpt index 27d19dd..dda7e8b 100644 --- a/tests/weakref_007.phpt +++ b/tests/weakref_007.phpt @@ -13,7 +13,7 @@ Weakref: Destroying the weakref and its object after a fatal error public $ref; function __construct($a) { - $this->ref = array($a); + $this->ref = new WeakRef($a); } function __destruct() {