summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_083.phpt
blob: 4b821dbf0b5ba0f850818b397cec00e3a2c25e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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