xref: /PHP-8.0/tests/lang/func_num_args.003.phpt (revision 5770b667)
1--TEST--
2func_num_args() outside of a function declaration
3--FILE--
4<?php
5
6try {
7    func_num_args();
8} catch (Error $exception) {
9    echo $exception->getMessage() . "\n";
10}
11
12?>
13--EXPECT--
14func_num_args() must be called from a function context
15