PHP code example of ali-eltaweel / signals

1. Go to this page and download the library: Download ali-eltaweel/signals library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ali-eltaweel / signals example snippets


declare(ticks=1);

use Signals\Signal;

Signal::SIGILL->handle(function(Signal $signal, array $siginfo) {
    
    // ...
});

Signal::SIGILL->kill(getmypid());