parent
2287695b44
commit
a3d8f57ef4
3 changed files with 26 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||||
|
--TEST-- |
||||||
|
A namespace block ending with a comment must not be treated as stray code |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
|
||||||
|
declare(strict_types=1); |
||||||
|
|
||||||
|
namespace Test { |
||||||
|
// test |
||||||
|
} |
||||||
|
|
||||||
|
namespace { |
||||||
|
function main() |
||||||
|
{ |
||||||
|
var_dump('done'); |
||||||
|
} |
||||||
|
|
||||||
|
// test1 |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
string(4) "done" |
||||||
Loading…
Reference in new issue