mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +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
|