crash - How to intentionally cause a fatal error in PHP script? -
i want script stop being executed @ point of crash, while not exhaust memory or otherwise crash server.
any idea how that?
i believe you're looking for:
trigger_error("oops!", e_user_error); docs: http://php.net/manual/en/function.trigger-error.php
e_user_error pretty equal e_error, fatal runtime error.
Comments
Post a Comment