PHPDaemon/Thread/IPC.php 1 location
|
@@ 215-220 (lines=6) @@
|
| 212 |
|
*/ |
| 213 |
|
public function shutdown($hard = false) { |
| 214 |
|
$error = error_get_last(); |
| 215 |
|
if ($error) { |
| 216 |
|
if ($error['type'] === E_ERROR) { |
| 217 |
|
$this->log('crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
} |
| 221 |
|
if (Daemon::$config->logevents->value) { |
| 222 |
|
$this->log('event shutdown(' . ($hard ? 'HARD' : '') . ') invoked.'); |
| 223 |
|
} |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 571-576 (lines=6) @@
|
| 568 |
|
*/ |
| 569 |
|
protected function shutdown($hard = false) { |
| 570 |
|
$error = error_get_last(); |
| 571 |
|
if ($error) { |
| 572 |
|
if ($error['type'] === E_ERROR) { |
| 573 |
|
Daemon::log('W#' . $this->pid . ' crashed by error \'' . $error['message'] . '\' at ' . $error['file'] . ':' . $error['line']); |
| 574 |
|
} |
| 575 |
|
|
| 576 |
|
} |
| 577 |
|
if (Daemon::$config->logevents->value) { |
| 578 |
|
$this->log('event shutdown(' . ($hard ? 'HARD' : '') . ') invoked.'); |
| 579 |
|
} |