php-src/Zend/tests/objects_026.phpt
2008-05-11 22:44:56 +00:00

14 lines
190 B
PHP

--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