mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
13 lines
211 B
PHP
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
|