summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_027.phpt
blob: b2cd4e16555d9f5c3a7f1ceacc09ba716c223551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
errmsg: class declarations may not be nested
--FILE--
<?php

class test {
	function foo() {
		class test2 {
		}
	}
}

echo "Done\n";
?>
--EXPECTF--
Fatal error: Class declarations may not be nested in %s on line %d