note 119947 added to function.require

From: Date: Sun, 25 Sep 2016 15:19:19 +0000
Subject: note 119947 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-206669@lists.php.net to get a copy of this message
I didn't find mention that calling return from inside an required file is different than calling return from inside an included file. return "aaa"; if called in the global scope of an included file will terminate the inclusion and return control to the main file givin "aaa" as a result of the include statement itself. As far as I have tested (PHP 5.6.10) this does not apply to require ---- Server IP: 72.52.91.14 Probable Submitter: 93.33.80.4 ---- Manual Page -- http://php.net/manual/en/function.require.php Edit -- https://master.php.net/note/edit/119947 Del: integrated -- https://master.php.net/note/delete/119947/integrated Del: useless -- https://master.php.net/note/delete/119947/useless Del: bad code -- https://master.php.net/note/delete/119947/bad+code Del: spam -- https://master.php.net/note/delete/119947/spam Del: non-english -- https://master.php.net/note/delete/119947/non-english Del: in docs -- https://master.php.net/note/delete/119947/in+docs Del: other reasons-- https://master.php.net/note/delete/119947 Reject -- https://master.php.net/note/reject/119947 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206669) next »