summaryrefslogtreecommitdiff
path: root/Zend/tests/dtor_scope.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/dtor_scope.phpt')
-rwxr-xr-xZend/tests/dtor_scope.phpt34
1 files changed, 0 insertions, 34 deletions
diff --git a/Zend/tests/dtor_scope.phpt b/Zend/tests/dtor_scope.phpt
deleted file mode 100755
index ab991cf949..0000000000
--- a/Zend/tests/dtor_scope.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Scoping in destructor call
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
---FILE--
-<?php
- class T
- {
- private $var = array();
-
- public function add($a)
- {
- array_push($this->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
-)