mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
14 lines
190 B
PHP
14 lines
190 B
PHP
--TEST--
|
|
Using $this when out of context
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$this->a = 1;
|
|
} catch (Exception $e) {
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Using $this when not in object context in %s on line %d
|