Doc #67833 [Fbk->Opn]: exit terminates execution NOT only current script

From: Date: Sun, 21 Sep 2014 10:38:57 +0000
Subject: Doc #67833 [Fbk->Opn]: exit terminates execution NOT only current script
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11498@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67833&edit=1 ID: 67833 User updated by: janusz dot witrykus at gmail dot com Reported by: janusz dot witrykus at gmail dot com Summary: exit terminates execution NOT only current script -Status: Feedback +Status: Open Type: Documentation Problem Package: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant Block user comment: N Private report: N New Comment: In http://php.net//manual/en/function.exit.php we have: "exit — Output a message and terminate the current script". What does "current script" there mean? In http://php.net/manual/en/function.return.php we have: "If called from the global scope, then execution of the current script file is ended. If the current script file was included or required, then control is passed back to the calling file". With "exit", all scripts that require or include current script file are terminated too. Maybe script is not limited to the file, and this is source my misunderstanding, sorry. Previous Comments: ------------------------------------------------------------------------ [2014-09-21 06:29:48] krakjoe@php.net I have no idea what the problem is, I don't know what "scripts above current script" means. Please try to explain the problem precisely. ------------------------------------------------------------------------ [2014-08-13 09:54:14] janusz dot witrykus at gmail dot com Description: ------------ --- From manual page: http://php.net//manual/en/function.exit.php --- It is not clear for me, I think, that exit terminates execution not only current script but all scripts above current script. It terminates execution all application, I think. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67833&edit=1

« previous php.doc.bugs (#11498) next »