Re: Constant and expression ?

From: Date: Wed, 19 May 2010 09:10:50 +0000
Subject: Re: Constant and expression ?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-48341@lists.php.net to get a copy of this message
hi, On Wed, May 19, 2010 at 11:03 AM, Tjerk Anne Meesters <datibbaw@php.net> wrote: > AFAIK class constants are optimized for speed and therefore don't > support expressions; don't expect this to change any time soon ;-) It would require to do a two passes compilation (or something along this line) as you can define constants later in your script. They will also be defined at runtime, not at buildtime. pecl's hidef may help :). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#48341) next »