From 08f5e816adfe10aeba99e673a3179bd42dd64119 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Fri, 16 May 2014 15:13:31 +0000 Subject: [PATCH] Add try/catch to list of places where const keyword cannot be used. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333547 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/constants.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/language/constants.xml b/language/constants.xml index d56db6fa8e..ea99cf3dfb 100644 --- a/language/constants.xml +++ b/language/constants.xml @@ -173,8 +173,9 @@ echo CONSTANT; As opposed to defining constants using define, constants defined using the const keyword must be declared at the top-level scope because they are defined at compile-time. - This means that they cannot be declared inside functions, loops or - if statements. + This means that they cannot be declared inside functions, loops, + if statements or try/ + catch blocks.