略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ReflectionExtension::info

2024-12-22

ReflectionExtension::info

(PHP 5 >= 5.2.4, PHP 7, PHP 8)

ReflectionExtension::info输出扩展信息

说明

public ReflectionExtension::info(): void

输出“phpinfo()”信息中的扩展信息。

参数

此函数没有参数。

返回值

扩展信息。

范例

示例 #1 ReflectionExtension::info() example

<?php
$ext 
= new ReflectionExtension('mysqli');
$ext->info();
?>

以上例程的输出类似于:

mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 5.0.5-dev - 081106 - $Revision$
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

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/reflectionextension.info.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3