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 Signal Handling => %s 38Zend Memory Manager => %s 39Zend Multibyte Support => %s 40IPv6 Support => %s 41DTrace Support => %s 42 43Registered PHP Streams => %s 44Registered Stream Socket Transports => %s 45Registered Stream Filters => %s 46 47%a 48 _______________________________________________________________________ 49 50 51Configuration 52%A 53Core 54%A 55Additional Modules 56%A 57Environment 58%A 59PHP Variables 60%A 61PHP License 62%A 63bool(true) 64-- 65 66Warning: phpinfo() expects parameter 1 to be integer, array given in %sphpinfo.php on line 5 67NULL 68-- 69phpinfo() 70bool(true) 71-- 72phpinfo() 73 74PHP License 75%a 76bool(true) 77