Регистрация Войти
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Войти через VK Войти через FB Войти через Google Войти через Яндекс
Поиск по сайту
Threaded::getTerminationInfo
(PECL pthreads >= 2.0.0)
Threaded::getTerminationInfo — Error Detection
Описание
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
class My extends Thread {
public function run() {
@not_found();
}
}
$my = new My();
$my->start();
$my->join();
var_dump($my->isTerminated(), $my->getTerminationInfo());
Результат выполнения данного примера:
bool(true)
array(4) {
["scope"]=>
string(2) "My"
["function"]=>
string(3) "run"
["file"]=>
string(29) "/usr/src/pthreads/sandbox.php"
["line"]=>
int(4)
}
User Contributed Notes
There are no user contributed notes for this page.

Описание класса threaded, примеры использования класса threaded.
Смотрите также:
Описание на ru2.php.net
Описание на php.ru