mirror of
https://github.com/php/php-src.git
synced 2024-10-18 06:52:34 +00:00
15 lines
281 B
Plaintext
15 lines
281 B
Plaintext
|
--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 in the script in %s on line %d
|