[PHP-BUG] Bug #67770 [NEW]: Constants inside functions

[email protected] ("[email protected]")
Newsgroups php.standards
Message-ID <[email protected]>
From:             joelm
Operating system: 
PHP version:      Irrelevant
Package:          PHP Language Specification
Bug Type:         Bug
Bug description:Constants inside functions

Description:
------------
https://github.com/php/php-langspec/blob/master/spec/07-variables.md#constants

"A constant defined inside a function has function scope." This is not
correct. c-constants defined in pseudomains and d-constants are
available everywhere, their scope is not limited to a single function or
a single pseudomain.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=67770&edit=1
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.