summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63635.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug63635.phpt')
-rw-r--r--Zend/tests/bug63635.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/tests/bug63635.phpt b/Zend/tests/bug63635.phpt
index 6f6fc6a44f..03cbfaf751 100644
--- a/Zend/tests/bug63635.phpt
+++ b/Zend/tests/bug63635.phpt
@@ -5,17 +5,17 @@ Bug #63635 (Segfault in gc_collect_cycles)
class Node {
public $parent = NULL;
public $childs = array();
-
+
function __construct(Node $parent=NULL) {
if ($parent) {
$parent->childs[] = $this;
}
$this->childs[] = $this;
}
-
+
function __destruct() {
$this->childs = NULL;
- }
+ }
}
define("MAX", 16);