2006-11-24 20:18:54 +00:00
|
|
|
--TEST--
|
|
|
|
phpinfo()
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
var_dump(phpinfo());
|
|
|
|
|
|
|
|
echo "--\n";
|
|
|
|
var_dump(phpinfo(array()));
|
|
|
|
|
|
|
|
echo "--\n";
|
|
|
|
var_dump(phpinfo(0));
|
|
|
|
|
|
|
|
echo "--\n";
|
|
|
|
var_dump(phpinfo(INFO_LICENSE));
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
phpinfo()
|
|
|
|
PHP Version => %s
|
|
|
|
|
|
|
|
System => %s
|
|
|
|
Build Date => %s
|
|
|
|
Configure Command => %s
|
|
|
|
Server API => Command Line Interface
|
|
|
|
Virtual Directory Support => %s
|
|
|
|
Configuration File (php.ini) Path => %s
|
2007-12-29 11:38:24 +00:00
|
|
|
Loaded Configuration File => %a
|
2006-11-24 20:18:54 +00:00
|
|
|
PHP API => %d
|
|
|
|
PHP Extension => %d
|
|
|
|
Zend Extension => %d
|
|
|
|
Debug Build => %s
|
|
|
|
Thread Safety => %s
|
|
|
|
Zend Memory Manager => %s
|
|
|
|
IPv6 Support => %s
|
|
|
|
Registered PHP Streams => %s
|
|
|
|
Registered Stream Socket Transports => %s
|
|
|
|
Registered Stream Filters => %s
|
|
|
|
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
_______________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
|
|
|
|
PHP Core
|
|
|
|
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
|
|
|
|
Additional Modules
|
|
|
|
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
|
|
|
|
Environment
|
|
|
|
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
|
|
|
|
PHP Variables
|
|
|
|
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
|
|
|
|
PHP License
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
bool(true)
|
|
|
|
--
|
|
|
|
|
|
|
|
Warning: phpinfo() expects parameter 1 to be long, array given in %sphpinfo.php on line 5
|
|
|
|
NULL
|
|
|
|
--
|
|
|
|
phpinfo()
|
|
|
|
bool(true)
|
|
|
|
--
|
|
|
|
phpinfo()
|
|
|
|
|
|
|
|
PHP License
|
2007-09-14 15:28:03 +00:00
|
|
|
%a
|
2006-11-24 20:18:54 +00:00
|
|
|
bool(true)
|