Re: redefine constants

From: Date: Wed, 28 Feb 2001 15:08:43 +0000
Subject: Re: redefine constants
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42031@lists.php.net to get a copy of this message
consants must be scalar, they can not be references. http://php.net/manual/en/function.define.php what your looking for is this. <?php define(LN, &__LINE__); ?> this is invalid syntax though, I dont know how to answer your question though, sorry :( -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 lee@mediawaveonline.com "Christian Dechery" <lemming@vento.com.br> wrote in message news:5.0.0.25.2.20010228131009.0229a090@pop-gw.vento.com.br... why can't I redefine __LINE__? like define(LN,__LINE__); it's a rather big constant to put in code to generate my error messages, I was thinking more of L, or LN... but if I redefine it, it assumes the value of de redefine() line of code... so it's not really redefining a constant it's only atributing LN the value of __LINE__... and in the manual I saw examples where redefining constants were used... ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#42031) next »