php-src/ext/standard/tests/general_functions/phpinfo.phpt

75 lines
1.2 KiB
Plaintext
Raw Normal View History

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%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
2006-11-24 20:18:54 +00:00
Registered PHP Streams => %s
Registered Stream Socket Transports => %s
Registered Stream Filters => %s
%a
2006-11-24 20:18:54 +00:00
_______________________________________________________________________
Configuration
2009-03-04 10:23:01 +00:00
%A
2009-01-13 17:08:26 +00:00
Core
2009-03-04 10:23:01 +00:00
%A
2006-11-24 20:18:54 +00:00
Additional Modules
2009-03-04 10:23:01 +00:00
%A
2006-11-24 20:18:54 +00:00
Environment
2009-03-04 10:23:01 +00:00
%A
2006-11-24 20:18:54 +00:00
PHP Variables
2009-03-04 10:23:01 +00:00
%A
2006-11-24 20:18:54 +00:00
PHP License
2009-03-04 10:23:01 +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
%a
2006-11-24 20:18:54 +00:00
bool(true)