Fix the warning raised when calling a function with too few arguments

Fixes #3336.

Well, it doesn't give exactly the same output as PHP does, but now the output is (hopefully) correct.