PHPDaemon/Thread/IPC.php 1 location
|
@@ 205-210 (lines=6) @@
|
| 202 |
|
public function shutdown($hard = false) |
| 203 |
|
{ |
| 204 |
|
$error = error_get_last(); |
| 205 |
|
if ($error) { |
| 206 |
|
if ($error['type'] === E_ERROR) { |
| 207 |
|
$this->log('crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 208 |
|
} |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
if (Daemon::$config->throwexceptiononshutdown->value) { |
| 212 |
|
throw new \Exception('event shutdown'); |
| 213 |
|
} |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 550-555 (lines=6) @@
|
| 547 |
|
protected function shutdown($hard = false) |
| 548 |
|
{ |
| 549 |
|
$error = error_get_last(); |
| 550 |
|
if ($error) { |
| 551 |
|
if ($error['type'] === E_ERROR) { |
| 552 |
|
Daemon::log('W#' . $this->pid . ' crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 553 |
|
} |
| 554 |
|
} |
| 555 |
|
|
| 556 |
|
if (Daemon::$config->throwexceptiononshutdown->value) { |
| 557 |
|
throw new \Exception('event shutdown'); |
| 558 |
|
} |