From 5bcc602a7c4cca0b3eda2fc9753275414bf5b1cb Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 11 Sep 2003 17:07:43 +0000 Subject: [PATCH] add test --- Zend/tests/dtor_scope.phpt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 Zend/tests/dtor_scope.phpt diff --git a/Zend/tests/dtor_scope.phpt b/Zend/tests/dtor_scope.phpt new file mode 100755 index 0000000000..ab991cf949 --- /dev/null +++ b/Zend/tests/dtor_scope.phpt @@ -0,0 +1,34 @@ +--TEST-- +Scoping in destructor call +--SKIPIF-- + +--FILE-- +var, $a); + } + + public function __destruct() + { + print_r($this->var); + } + } + + class TT extends T + { + } + $t = new TT(); + $t->add("Hello"); + $t->add("World"); +?> +--EXPECT-- +Array +( + [0] => Hello + [1] => World +) -- 2.50.1