php-src/Zend/tests/func_get_args.phpt
2020-03-31 16:32:58 +02:00

15 lines
255 B
PHP

--TEST--
Testing func_get_args() throws error when called from the global scope
--FILE--
<?php
try {
func_get_args();
} catch (\Error $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
func_get_args() cannot be called from the global scope