1--TEST--
2Call internal function with incorrect number of arguments
3--FILE--
4<?php
5try {
6    substr("foo");
7} catch (ArgumentCountError $e) {
8    echo $e->getMessage(), "\n";
9}
10?>
11--EXPECT--
12substr() expects at least 2 arguments, 1 given
13