xref: /php-src/Zend/tests/assign_to_obj_002.phpt (revision f8d79582)
1--TEST--
2Assign to $this leaks when $this not defined
3--FILE--
4<?php
5
6try {
7    $this->a = new stdClass;
8} catch (Error $e) { echo $e->getMessage(), "\n"; }
9
10?>
11--EXPECT--
12Using $this when not in object context
13