summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_068.phpt
blob: 09075f6c766f9892437d307f8b7ae0ae3abbcd7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
068: Code before namespace
--FILE--
<?php
echo __NAMESPACE__ . "\n";
namespace foo;
echo __NAMESPACE__ . "\n";
namespace bar;
echo __NAMESPACE__ . "\n";
?>
===DONE===
--EXPECTF--
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in %sns_068.php on line %d