note 43963 deleted from function.define by aidan

From: Date: Sat, 10 Jul 2004 13:25:53 +0000
Subject: note 43963 deleted from function.define by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72989@lists.php.net to get a copy of this message
Note Submitter: info@webability.info ---- On windows, php 4.2.3, define is case insensitive, but defined is case sensitive ! define ("CONSTANT", "one"); define ("constant", "two"); Will work perfectly on unix system, but give a notine on windows Notice: Constant constant already defined in c:\...\lib on line xx If you add a defined, it STILL will give a notice on windows ! define ("CONSTANT", "one"); if (!defined("constant")) define ("constant", "two"); Just be careful to not have similar constants.

« previous php.notes (#72989) next »