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