php-src/Zend/tests/assign_to_obj_002.phpt
2020-02-03 22:52:20 +01:00

13 lines
211 B
PHP

--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