1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--TEST-- Using $this when out of context --FILE-- <?php try { $this->a = 1; } catch (Exception $e) { } ?> --EXPECTF-- Fatal error: Uncaught Error: Using $this when not in object context in %s:%d Stack trace: #0 {main} thrown in %s on line %d