mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
15 lines
310 B
PHP
15 lines
310 B
PHP
--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 in the script in %sns_068.php on line %d
|