]> granicus.if.org Git - php/commitdiff
Add testcase for complicated reference scenarios with objects.
authorMarcus Boerger <helly@php.net>
Sat, 9 Aug 2003 20:09:09 +0000 (20:09 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 9 Aug 2003 20:09:09 +0000 (20:09 +0000)
tests/classes/destructor_and_references.phpt [new file with mode: 0755]

diff --git a/tests/classes/destructor_and_references.phpt b/tests/classes/destructor_and_references.phpt
new file mode 100755 (executable)
index 0000000..d2afc2a
--- /dev/null
@@ -0,0 +1,26 @@
+--TEST--
+Destucting and references
+--FILE--
+<?php
+
+class test1 {var $x;};
+class test2 {var $x;};
+class test3 {var $x;};
+class test4 {var $x;};
+
+$o1 = new test1;
+$o2 = new test2;
+$o3 = new test3;
+$o4 = new test4;
+
+$o3->x = &$o4;
+
+$r1 = &$o1;
+
+class once {}
+
+$o = new once;
+echo "Done\n";
+?>
+--EXPECT--
+Done
\ No newline at end of file