summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_026.phpt
blob: bd74119b59c8c066928bd99e9b88837de8411db5 (plain)
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