summaryrefslogtreecommitdiff
path: root/Zend/tests/function_arguments/argument_count_correct.phpt
blob: e4e8e72b22c2119a474f62cce20b5e5c09bb5053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Call function with correct number of arguments
--FILE--
<?php
function foo() { }
foo();

function bar($foo, $bar) { }
bar(1, 2);

function bat(int $foo, string $bar) { }
bat(123, "foo");
bat("123", "foo");

$fp = fopen(__FILE__, "r");
fclose($fp);

echo "done";
?>
--EXPECT--
done