©
本文档使用 PHP中文网手册 发布
(PECL mongo >=0.9.5)
MongoDB::forceError — Creates a database error
This method is not very useful for normal MongoDB use. It forces a database error to occur. This means that MongoDB::lastError() will return a generic database error after running this command.
This command is identical to running:
<?php
public function forceError () {
return $this -> command (array( 'forceerror' => 1 ));
}
?>
此函数没有参数。
Returns the database response.
版本 | 说明 |
---|---|
1.2.11 | Emits E_DEPRECATED when used. |