php-src/Zend/tests/errmsg_027.phpt
2018-10-14 12:07:20 -03:00

17 lines
224 B
PHP

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