note 115519 added to function.exit

From: Date: Fri, 08 Aug 2014 08:03:49 +0000
Subject: note 115519 added to function.exit
Groups: php.notes 
Request: Send a blank email to php-notes+get-200139@lists.php.net to get a copy of this message
It seems to be obvious, but was not clear for me for the first time: if you call exit function from a function, it won't return, just stops without any further step. This may be dangeous if you would have some important steps in the function code which have to be done by hand, e.g. database rollback calls, or anything won't be not done automatically by the engine (database connection close for example) ---- Server IP: 212.124.37.9 Probable Submitter: 217.115.75.200 ---- Manual Page -- http://php.net/manual/en/function.exit.php Edit -- https://master.php.net/note/edit/115519 Del: integrated -- https://master.php.net/note/delete/115519/integrated Del: useless -- https://master.php.net/note/delete/115519/useless Del: bad code -- https://master.php.net/note/delete/115519/bad+code Del: spam -- https://master.php.net/note/delete/115519/spam Del: non-english -- https://master.php.net/note/delete/115519/non-english Del: in docs -- https://master.php.net/note/delete/115519/in+docs Del: other reasons-- https://master.php.net/note/delete/115519 Reject -- https://master.php.net/note/reject/115519 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200139) next »