summaryrefslogtreecommitdiff
path: root/ext/date/tests/time_error.phpt
blob: 4103ff7d8b55505e2b9857caad3f25ca448bd0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Test wrong number of arguments for time()
--FILE--
<?php
/*
 * proto int time(void)
 * Function is implemented in ext/date/php_date.c
*/

// Extra arguments are ignored
$extra_arg = 1;
echo "\nToo many arguments\n";
var_dump (time($extra_arg));
?>
===DONE===
--EXPECTF--
Too many arguments
int(%d)
===DONE===