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

85 lines
1.2 KiB
Plaintext
Raw Normal View History

2006-11-24 20:20:51 +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:43:36 +00:00
Build Date => %s%a
2006-11-24 20:20:51 +00:00
Configure Command => %s
Server API => Command Line Interface
Virtual Directory Support => %s
Configuration File (php.ini) Path => %s
2007-12-29 11:39:06 +00:00
Loaded Configuration File => %a
2009-01-04 15:21:39 +00:00
Scan this dir for additional .ini files => %a
Additional .ini files parsed => %a
2006-11-24 20:20:51 +00:00
PHP API => %d
PHP Extension => %d
Zend Extension => %d
2009-01-17 18:29:17 +00:00
Zend Extension Build => API%s
PHP Extension Build => API%s
2006-11-24 20:20:51 +00:00
Debug Build => %s
Thread Safety => %s
Zend Memory Manager => %s
2007-09-28 22:40:23 +00:00
Unicode Support => %s
2006-11-24 20:20:51 +00:00
IPv6 Support => %s
2007-09-28 22:40:23 +00:00
2006-11-24 20:20:51 +00:00
Registered PHP Streams => %s
Registered Stream Socket Transports => %s
Registered Stream Filters => %s
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
_______________________________________________________________________
Configuration
2009-02-15 21:48:07 +00:00
%a
2009-01-17 18:29:17 +00:00
Core
2006-11-24 20:20:51 +00:00
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
Additional Modules
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
Environment
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
PHP Variables
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
PHP License
2007-09-14 15:36:29 +00:00
%a
2006-11-24 20:20:51 +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:36:29 +00:00
%a
2006-11-24 20:20:51 +00:00
bool(true)