1--TEST--
2Test srand() - basic function test for srand()
3--FILE--
4<?php
5echo "*** Testing srand() : basic functionality ***\n";
6
7// Should return NULL if given anything that it can convert to long
8// This doesn't actually test what it does with the input :-\
9var_dump(srand());
10var_dump(srand(500));
11var_dump(srand(500.1));
12var_dump(srand("500"));
13var_dump(srand("500E3"));
14var_dump(srand(true));
15var_dump(srand(false));
16?>
17--EXPECTF--
18*** Testing srand() : basic functionality ***
19NULL
20NULL
21
22Deprecated: Implicit conversion from float 500.1 to int loses precision in %s on line %d
23NULL
24NULL
25NULL
26NULL
27NULL
28