Is there a simple way to trigger PHP shutdown so that error_get_last function returns a real error from within a function registered with register_shutdown_function. I need it to test my custom error handling and mailing functions under stress conditions.
trigger_error("You goin' down!", E_USER_ERROR);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With