note 71422 added to language.constants

From: Date: Tue, 28 Nov 2006 11:04:02 +0000
Subject: note 71422 added to language.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-120122@lists.php.net to get a copy of this message
Two little notes: 1: In PHP Version 4.3.2 <code> define ("HEIGHTMODEL", 177); define ("BOTTOM_BAR", 17); define ("BORDER_BOTTOM", HEIGHTMODEL-BOTTOM_BAR+1); </code> does not work!! BORDER_BOTTOM is 178, not 161 as you'd expect. PHP does not seem to like multiple constants to be used to define another constant. Weird. 2: Also - to everybody using <code>if (DEBUG)</code> and what not, just use <code>assert()</code> instead with the nice stack trace functions people have provided on other pages. <code>assert()</code> statement get ignored completely if you switch them off so they are more efficient. regards, Anthony ps: sorry, I don't know how to get syntax highlighting to work :( ---- Server IP: 66.163.161.117 Probable Submitter: 80.37.21.190 ---- Manual Page -- http://www.php.net/manual/en/language.constants.php Edit -- https://master.php.net/note/edit/71422 Del: integrated -- https://master.php.net/note/delete/71422/integrated Del: useless -- https://master.php.net/note/delete/71422/useless Del: bad code -- https://master.php.net/note/delete/71422/bad+code Del: spam -- https://master.php.net/note/delete/71422/spam Del: non-english -- https://master.php.net/note/delete/71422/non-english Del: in docs -- https://master.php.net/note/delete/71422/in+docs Del: other reasons-- https://master.php.net/note/delete/71422 Reject -- https://master.php.net/note/reject/71422 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120122) next »