Skip to content

Commit 3846648

Browse files
committed
KRF-141 #resolve Moved Parser API to Util\Parser API
1 parent 2945078 commit 3846648

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ErrorEnvHandler.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Kraken\Throwable;
44

5-
use Kraken\Core\CoreInputContextInterface;
6-
use Kraken\Runtime\Runtime;
75
use Kraken\Throwable\Error\FatalError;
86
use Kraken\Throwable\Error\NoticeError;
97
use Kraken\Throwable\Error\WarningError;
@@ -68,9 +66,9 @@ public static function handleError($code, $message, $file, $line)
6866
}
6967

7068
/**
71-
* @param CoreInputContextInterface $context
69+
* @param bool $forceKill
7270
*/
73-
public static function handleShutdown(CoreInputContextInterface $context)
71+
public static function handleShutdown($forceKill = false)
7472
{
7573
$err = error_get_last();
7674

@@ -87,8 +85,7 @@ public static function handleShutdown(CoreInputContextInterface $context)
8785
echo \Kraken\Throwable\Exception::toString($ex) . PHP_EOL;
8886
}
8987

90-
// TODO Kraken-102
91-
if ($context->type() === Runtime::UNIT_PROCESS)
88+
if ($forceKill)
9289
{
9390
posix_kill(posix_getpid(), 9);
9491
}

0 commit comments

Comments
 (0)