Doc #67833 [Opn->Nab]: exit terminates execution NOT only current script
| From: | salathe@php.net | Date: | Sun, 26 Oct 2014 16:23:28 +0000 |
| Subject: | Doc #67833 [Opn->Nab]: exit terminates execution NOT only current script | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11588@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
Updated by: salathe@php.net
Reported by: janusz dot witrykus at gmail dot com
Summary: exit terminates execution NOT only current script
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
IMHO, "current script" is fine here, and is distinct enough from "current script
file".
Previous Comments:
------------------------------------------------------------------------
[2014-09-21 10:38:56] janusz dot witrykus at gmail dot com
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.
------------------------------------------------------------------------
[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