PHP code example of alexeevdv / php-segfault-exception

1. Go to this page and download the library: Download alexeevdv/php-segfault-exception 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/ */

    

alexeevdv / php-segfault-exception example snippets



// test.php

use alexeevdv\SegfaultException;

throw new SegfaultException;

bash
$ php composer.phar 

"alexeevdv/php-segfault-exception": "^1.0"
bash
$ php test.php 
Segmentation fault (core dumped)