summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_026.phpt
blob: 2ea8785658fd0b9fd52b2120da9dbba374cd3766 (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 EngineException: Using $this when not in object context in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d