note 88316 added to function.define

From: Date: Tue, 20 Jan 2009 04:22:09 +0000
Subject: note 88316 added to function.define
Groups: php.notes 
Request: Send a blank email to php-notes+get-149505@lists.php.net to get a copy of this message
I know that a constant, by definition, cannot be re-defined, but, as I found out the hard way, it would be nice if a re-define would result in a warning: <?php define('DEF',"foo"); print DEF; define('DEF',"bar"); print DEF; ?> Prints: foofoo and there is no warning. ---- Server IP: 208.69.120.35 Probable Submitter: 72.72.54.98 ---- Manual Page -- http://www.php.net/manual/en/function.define.php Edit -- https://master.php.net/note/edit/88316 Del: integrated -- https://master.php.net/note/delete/88316/integrated Del: useless -- https://master.php.net/note/delete/88316/useless Del: bad code -- https://master.php.net/note/delete/88316/bad+code Del: spam -- https://master.php.net/note/delete/88316/spam Del: non-english -- https://master.php.net/note/delete/88316/non-english Del: in docs -- https://master.php.net/note/delete/88316/in+docs Del: other reasons-- https://master.php.net/note/delete/88316 Reject -- https://master.php.net/note/reject/88316 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149505) next »