xref: /PHP-7.4/Zend/tests/assign_to_obj_002.phpt (revision ffc1ef1e)
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