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
|
2008-08-17 16:44:13 +00:00
|
|
|
Build Date => %s%a
|
2006-11-24 20:18:54 +00:00
|
|
|
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
|
2009-01-04 15:21:56 +00:00
|
|
|
Scan this dir for additional .ini files => %a
|
|
|
|
Additional .ini files parsed => %a
|
2006-11-24 20:18:54 +00:00
|
|
|
PHP API => %d
|
|
|
|
PHP Extension => %d
|
|
|
|
Zend Extension => %d
|
2009-01-17 17:59:51 +00:00
|
|
|
Zend Extension Build => API%s
|
|
|
|
PHP Extension Build => API%s
|
2006-11-24 20:18:54 +00:00
|
|
|
Debug Build => %s
|
|
|
|
Thread Safety => %s
|
|
|
|
Zend Memory Manager => %s
|
2008-07-08 08:37:56 +00:00
|
|
|
Zend Multibyte Support => %s
|
2006-11-24 20:18:54 +00:00
|
|
|
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
|
|
|
|
|
2009-01-13 17:08:26 +00:00
|
|
|
Core
|
2006-11-24 20:18:54 +00:00
|
|
|
|
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)
|