1--TEST--
2Testing func_get_args() throws error when called from the global scope
3--FILE--
4<?php
5
6try {
7 func_get_args();
8} catch (\Error $e) {
9 echo $e->getMessage() . \PHP_EOL;
10}
11
12?>
13--EXPECT--
14func_get_args() cannot be called from the global scope
15