Welcome Guest, Not a member yet? Register   Sign In
Is calling exit() after show_error() necessary?
#1

[eluser]Unknown[/eluser]
I want to be sure no successive lines of code are called if a conditional is met that triggers show_error(). Does this halt script execution or should I place exit() or die() after to be certain?
#2

[eluser]Aken[/eluser]
show_error() and show_404() both contain exit() calls already. You can do it if it makes you feel better, but it's not necessary.
#3

[eluser]Unknown[/eluser]
I thought so but I couldn't find those call in the CI source. It uses output buffering to display the formatted error message and beyond that I could determine any call to exit(). Thanks for the clarification.
#4

[eluser]Aken[/eluser]
Those functions are in /system/core/Common.php




Theme © iAndrew 2016 - Forum software by © MyBB