summaryrefslogtreecommitdiff
path: root/Zend/tests/assign_to_obj_002.phpt
blob: a911c06f36d543172a1a5f10f50a4badb7f2942a (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