1--TEST--
2phpinfo() CGI
3--POST--
4dummy=x
5--FILE--
6<?php
7var_dump(phpinfo());
8
9echo "--\n";
10var_dump(phpinfo(array()));
11
12echo "--\n";
13var_dump(phpinfo(0));
14
15echo "--\n";
16var_dump(phpinfo(INFO_LICENSE));
17
18?>
19--EXPECTF--
20<!DOCTYPE %s>
21%a</html>bool(true)
22--
23
24Warning: phpinfo() expects parameter 1 to be long, array given in %sphpinfo2.php on line 5
25NULL
26--
27<!DOCTYPE %s>
28%a</html>bool(true)
29--
30<!DOCTYPE %s>
31%a</html>bool(true)
32