首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ReflectionExtension::info

(PHP 5, PHP 7)

ReflectionExtension::info — Print extension info

Description

代码语言:javascript
复制
public void ReflectionExtension::info ( void )

Prints out the "phpinfo()" snippet for the given extension.

Parameters

This function has no parameters.

Return Values

Information about the extension.

Examples

Example #1 ReflectionExtension::info() example

代码语言:javascript
复制
<?php
$ext = new ReflectionExtension('mysqli');
$ext->info();
?>

The above example will output something similar to:

代码语言:javascript
复制
mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 5.0.5-dev - 081106 - $Revision: 315808 $
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0
Persistent cache => enabled
put_hits => 0
put_misses => 0
get_hits => 0
get_misses => 0
size => 2000
free_items => 2000
references => 2

Directive => Local Value => Master Value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_user => no value => no value
mysqli.default_pw => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_socket => no value => no value
mysqli.reconnect => Off => Off
mysqli.allow_local_infile => On => On
mysqli.cache_size => 2000 => 2000

See Also

  • ReflectionExtension::getName() - Gets extension name
  • phpinfo() - Outputs information about PHP's configuration

← ReflectionExtension::getVersion

ReflectionExtension::isPersistent →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券