mirror of
https://github.com/php/php-src.git
synced 2024-12-24 01:09:58 +08:00
17 lines
225 B
PHP
17 lines
225 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
|