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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -