xref: /PHP-5.6/Zend/tests/bug68370.phpt (revision ab849392)
1--TEST--
2Bug #68370 "unset($this)" can make the program crash
3--FILE--
4<?php
5class C {
6	public function test() {
7		unset($this);
8		return get_defined_vars();
9	}
10}
11$c = new C();
12$x = $c->test();
13print_r($x);
14unset($c, $x);
15--EXPECTF--
16Array
17(
18)
19