Bug #67770 [NEW]: Constants inside functions

From: Date: Tue, 05 Aug 2014 16:48:01 +0000
Subject: Bug #67770 [NEW]: Constants inside functions
Groups: php.standards 
Request: Send a blank email to standards-+get-323@lists.php.net to get a copy of this message
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 --

« previous php.standards (#323) next »