Skip to content

Commit

Permalink
Revert "Add segmentation fault handler to rayaop.php"
Browse files Browse the repository at this point in the history
This reverts commit 88eea6e.
  • Loading branch information
koriym committed Jun 27, 2024
1 parent dcc97b0 commit a957d5d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions rayaop.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@

require __DIR__ . '/php-src/InterceptedInterface.php';

function segfault_handler($signo, $siginfo, $context)
{
$backtrace = debug_backtrace();
error_log("Segmentation fault occurred. Backtrace:\n" . print_r($backtrace, true));
exit(1);
}

pcntl_signal(SIGSEGV, "segfault_handler");

class Intercepted implements Ray\Aop\MethodInterceptorInterface
{
public function intercept(object $object, string $method, array $params): mixed
Expand Down

0 comments on commit a957d5d

Please sign in to comment.