/php-segfault-exception

PHP exception which leads to segfault when not handled properly.

Primary LanguagePHPMIT LicenseMIT

php-segfault-exception

Build Status codecov PHP 5.6 PHP 7.0 PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4

PHP exception which leads to segfault when not handled properly.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require alexeevdv/php-segfault-exception "^1.0"

or add

"alexeevdv/php-segfault-exception": "^1.0"

to the require section of your composer.json file.

Usage

<?php
// test.php

use alexeevdv\SegfaultException;

throw new SegfaultException;
$ php test.php 
Segmentation fault (core dumped)