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