1--TEST--
2Test srand() - basic function test for srand()
3--FILE--
4<?php
5/* Prototype  : void srand  ([ int $seed  ] )
6 * Description: Seed the random number generator.
7 * Source code: ext/standard/rand.c
8 */
9
10echo "*** Testing srand() : basic functionality ***\n";
11
12// Should return NULL if given anything that it can convert to long
13// This doesn't actually test what it does with the input :-\
14var_dump(srand());
15var_dump(srand(500));
16var_dump(srand(500.1));
17var_dump(srand("500"));
18var_dump(srand("500E3"));
19var_dump(srand(true));
20var_dump(srand(false));
21var_dump(srand(NULL));
22?>
23===Done===
24--EXPECT--
25*** Testing srand() : basic functionality ***
26NULL
27NULL
28NULL
29NULL
30NULL
31NULL
32NULL
33NULL
34===Done===
35