略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoDB::resetError

2024-12-21

MongoDB::resetError

(PECL mongo >=0.9.5)

MongoDB::resetErrorClears any flagged errors on the database

说明

public MongoDB::resetError ( void ) : array

This method is not used in normal operations. It resets the database error tracker (which can be incremented with MongoDB::forceError(), also not normally used).

It is equivalent to running:

<?php

public function resetError() {
    return 
$this->command(array('reseterror' => 1));
}

?>

参数

此函数没有参数。

返回值

Returns the database response.

更新日志

版本 说明
1.2.11 Emits E_DEPRECATED when used.
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mongodb.reseterror.php

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