note 103944 added to function.define

From: Date: Fri, 13 May 2011 04:32:07 +0000
Subject: note 103944 added to function.define
Groups: php.notes 
Request: Send a blank email to php-notes+get-179669@lists.php.net to get a copy of this message
@ andreas at cap-systems dot com 05-Feb-2011 12:54 You should probably think about enabled PHP WARNING and STRICT messages on your development machine. If you do as you suggest: <?php define(MY_NAME, 'value'); ?> This will throw a warning because you are looking for a constant name MY_NAME and PHP cannot find it, so it defaults to interpreting it as a string. This results in a PHP WARNING message - which, while not fatal to your script, does indicate a problem which should be addressed. ---- Server IP: 69.147.83.197 Probable Submitter: 203.122.234.143 ---- Manual Page -- http://www.php.net/manual/en/function.define.php Edit -- https://master.php.net/note/edit/103944 Del: integrated -- https://master.php.net/note/delete/103944/integrated Del: useless -- https://master.php.net/note/delete/103944/useless Del: bad code -- https://master.php.net/note/delete/103944/bad+code Del: spam -- https://master.php.net/note/delete/103944/spam Del: non-english -- https://master.php.net/note/delete/103944/non-english Del: in docs -- https://master.php.net/note/delete/103944/in+docs Del: other reasons-- https://master.php.net/note/delete/103944 Reject -- https://master.php.net/note/reject/103944 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179669) next »