summaryrefslogtreecommitdiff
path: root/Zend/tests/assign_to_obj_002.phpt
blob: 0ab2e84163ba90eec9314318dc6b010442e64c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Assign to $this leaks when $this not defined
--FILE--
<?php

try {
	$this->a = new stdClass;
} catch (Error $e) { echo $e->getMessage(), "\n"; }

?>
--EXPECT--
Using $this when not in object context