1--TEST-- 2phpinfo() 3--FILE-- 4<?php 5var_dump(phpinfo()); 6 7echo "--\n"; 8var_dump(phpinfo(array())); 9 10echo "--\n"; 11var_dump(phpinfo(0)); 12 13echo "--\n"; 14var_dump(phpinfo(INFO_LICENSE)); 15 16?> 17--EXPECTF-- 18phpinfo() 19PHP Version => %s 20 21System => %s 22Build Date => %s%a 23Configure Command => %s 24Server API => Command Line Interface 25Virtual Directory Support => %s 26Configuration File (php.ini) Path => %s 27Loaded Configuration File => %a 28Scan this dir for additional .ini files => %a 29Additional .ini files parsed => %a 30PHP API => %d 31PHP Extension => %d 32Zend Extension => %d 33Zend Extension Build => API%s 34PHP Extension Build => API%s 35Debug Build => %s 36Thread Safety => %s 37Zend Memory Manager => %s 38Zend Multibyte Support => %s 39IPv6 Support => %s 40Registered PHP Streams => %s 41Registered Stream Socket Transports => %s 42Registered Stream Filters => %s 43 44%a 45 _______________________________________________________________________ 46 47 48Configuration 49%A 50Core 51%A 52Additional Modules 53%A 54Environment 55%A 56PHP Variables 57%A 58PHP License 59%A 60bool(true) 61-- 62 63Warning: phpinfo() expects parameter 1 to be long, array given in %sphpinfo.php on line 5 64NULL 65-- 66phpinfo() 67bool(true) 68-- 69phpinfo() 70 71PHP License 72%a 73bool(true) 74