note 88316 deleted from function.define by danbrown

From: Date: Tue, 20 Jan 2009 18:33:22 +0000
Subject: note 88316 deleted from function.define by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149549@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- 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.

« previous php.notes (#149549) next »