note 107327 deleted from language.constants.syntax by cmb

From: Date: Tue, 05 Jul 2016 13:06:30 +0000
Subject: note 107327 deleted from language.constants.syntax by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205888@lists.php.net to get a copy of this message
Note Submitter: 0gb dot us at 0gb dot us ---- While most constants are only defined in one namespace, the case-insensitive true, false, and null constants are defined in ALL namespaces. So, this is not valid: <?php namespace false; const ENT_QUOTES = 'My value'; echo ENT_QUOTES;//Outputs as expected: 'My value' const FALSE = 'Odd, eh?';//FATAL ERROR! ?> Fatal error: Cannot redeclare constant 'FALSE' in /Volumes/WebServer/0gb.us/test.php on line 5

« previous php.notes (#205888) next »