From fdd664969d16292c6d6992902541deb1ada00575 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 23 Jun 2009 13:46:53 +0000 Subject: [PATCH] make it cristal clear you cannot jump between files git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282655 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures/goto.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language/control-structures/goto.xml b/language/control-structures/goto.xml index 68f930ce53..041fe56b5b 100644 --- a/language/control-structures/goto.xml +++ b/language/control-structures/goto.xml @@ -1,5 +1,5 @@ - + <literal>goto</literal> @@ -9,7 +9,7 @@ followed by a colon, and the instruction is given as goto followed by the desired target label. This is not a full unrestricted goto. The target - label must be within the same context, meaning that you cannot jump + label must be within the same file and context, meaning that you cannot jump out of a function or method, nor can you jump into one. You also cannot jump into any sort of loop or switch structure. You may jump out of these, and a common use is to use a goto