mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +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
|