note 91846 added to language.constants

From: Date: Mon, 29 Jun 2009 00:56:54 +0000
Subject: note 91846 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-157653@lists.php.net to get a copy of this message
@tudor: The error message is entirely correct, but the exact meaning is subtle and thus confusing. It indicates that the non-existent (not yet, anyway) constant MY_CONST was interpreted as the string "MY_CONST". It's the same as anytime you use an undefined identifier, such as an unquoted array index. I'm still looking for where this behavior is documented. ---- Server IP: 209.41.74.194 Probable Submitter: 76.115.240.237 ---- Manual Page -- http://www.php.net/manual/en/language.constants.php Edit -- https://master.php.net/note/edit/91846 Del: integrated -- https://master.php.net/note/delete/91846/integrated Del: useless -- https://master.php.net/note/delete/91846/useless Del: bad code -- https://master.php.net/note/delete/91846/bad+code Del: spam -- https://master.php.net/note/delete/91846/spam Del: non-english -- https://master.php.net/note/delete/91846/non-english Del: in docs -- https://master.php.net/note/delete/91846/in+docs Del: other reasons-- https://master.php.net/note/delete/91846 Reject -- https://master.php.net/note/reject/91846 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157653) next »