| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
Threaded::getTerminationInfo(PECL pthreads < 3.0.0) Threaded::getTerminationInfo — Error Detection 警告
This method has been removed in pthreads v3. Instead, the body of Threaded::run() can be wrapped in a try...catch block to detect errors (since most errors in PHP 7 have been converted to exceptions). 説明
public array Threaded::getTerminationInfo
( void
)
Retrieves terminal error information from the referenced object パラメータこの関数にはパラメータはありません。 返り値array containing the termination conditions of the referenced object 例
例1 Detecting fatal errors in Threads
<?php上の例の出力は以下となります。
bool(true)
array(4) {
["scope"]=>
string(2) "My"
["function"]=>
string(3) "run"
["file"]=>
string(29) "/usr/src/pthreads/sandbox.php"
["line"]=>
int(4)
}
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「Threaded::getTerminationInfo - Error Detection」をGoogle検索
|