PHPDaemon/Thread/IPC.php 1 location
|
@@ 210-215 (lines=6) @@
|
| 207 |
|
public function shutdown($hard = false) |
| 208 |
|
{ |
| 209 |
|
$error = error_get_last(); |
| 210 |
|
if ($error) { |
| 211 |
|
if ($error['type'] === E_ERROR) { |
| 212 |
|
$this->log('crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 213 |
|
} |
| 214 |
|
} |
| 215 |
|
if (Daemon::$config->logevents->value) { |
| 216 |
|
$this->log('event shutdown(' . ($hard ? 'HARD' : '') . ') invoked.'); |
| 217 |
|
} |
| 218 |
|
|
PHPDaemon/Thread/Worker.php 1 location
|
@@ 576-581 (lines=6) @@
|
| 573 |
|
protected function shutdown($hard = false) |
| 574 |
|
{ |
| 575 |
|
$error = error_get_last(); |
| 576 |
|
if ($error) { |
| 577 |
|
if ($error['type'] === E_ERROR) { |
| 578 |
|
Daemon::log('W#' . $this->pid . ' crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 579 |
|
} |
| 580 |
|
} |
| 581 |
|
if (Daemon::$config->logevents->value) { |
| 582 |
|
$this->log('event shutdown(' . ($hard ? 'HARD' : '') . ') invoked.'); |
| 583 |
|
} |
| 584 |
|
|