summaryrefslogtreecommitdiff
path: root/ext/date/tests/time_error.phpt
blob: 5f6f52f81d9596b11487fdba79c0b82fd2ad0898 (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===