update : 2015.11.03
php.shukuma.com

검색:
 
 
Creates a database error

MongoDB::forceError

(PECL mongo >=0.9.5)

MongoDB::forceErrorCreates a database error

설명

public bool MongoDB::forceError ( void )

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.