php rsautils,PHP - Manual: 简介 (官方文档)

简介

The mysqlnd user handler plugin (mysqlnd_uh)

allows users to set hooks for most internal calls of the

MySQL native driver for PHP

(mysqli,

mysql,

PDO_MYSQL) are compiled to

use mysqlnd this can be used for:Monitoring

Queries executed by any of the PHP MySQL extensions

Prepared statements executing by any of the PHP MySQL extensions

Auditing

Detection of database usage

SQL injection protection using black and white lists

Assorted

Load Balancing connections

The MySQL native driver for PHP (mysqlnd)

features an internal plugin C API. C plugins, such as the mysqlnd

user handler plugin, can extend the functionality of

mysqlnd. PECL/mysqlnd_uh

makes parts of the internal plugin C API available to the

PHP user for plugin development with PHP.

Note:

Status

The mysqlnd user handler plugin is in alpha status.

Take appropriate care before using it in production environments.

Security considerations

PECL/mysqlnd_uh gives users access to MySQL user names, MySQL password

used by any of the PHP MySQL extensions to connect to MySQL.

It allows monitoring of all queries and prepared statements exposing

the statement string to the user. Therefore, the extension should be

installed with care. The PHP_INI_SYSTEM configuration setting

Code obfuscators and similar technologies are not suitable to prevent

monitoring of mysqlnd library activities if PECL/mysqlnd_uh is made

available and the user can install a proxy, for example,

using auto_prepend_file.

Documentation note

Many of the mysqlnd_uh functions are briefly described because

the mysqli extension is

a thin abstraction layer on top of the MySQL C API that

the mysqlnd library provides. Therefore,

the corresponding mysqli documentation

(along with the MySQL reference manual) can be consulted

to receive more information about a particular function.

On the name

The shortcut mysqlnd_uh stands for

mysqlnd user handler, and has been the name

since early development.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值