mirror of
https://github.com/php/php-src.git
synced 2024-10-18 15:02:38 +00:00
14 lines
190 B
Plaintext
14 lines
190 B
Plaintext
|
--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
|