mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +08:00
15 lines
317 B
PHP
15 lines
317 B
PHP
--TEST--
|
|
083: bracketed namespace with junk before the ns declaration
|
|
--FILE--
|
|
<?php
|
|
$a = 'oops';
|
|
echo $a;
|
|
namespace foo {
|
|
}
|
|
namespace ok {
|
|
echo "ok\n";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in %sns_083.php on line %d
|