Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48341 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26253 invoked from network); 19 May 2010 09:10:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2010 09:10:57 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:34204] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/B1-13665-E1BA3FB4 for ; Wed, 19 May 2010 05:10:55 -0400 Received: by wyb40 with SMTP id 40so421696wyb.29 for ; Wed, 19 May 2010 02:10:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Fo4W2anaCANetEacGuGrFaCtDVR2TQRih2XwTQ4qSN4=; b=CitEx/jTEYgIhhkmNRkTDLImqt9RF/+YsxV82tKo8fkzvfA56Ezyo/mE7MGGKwR74J EcAghWWP/I7IM2OQtzHEkJiLn4DuYCr4QaqEyhWjTarNp/tDX+FrPBQiPg0S5nKh/wJs FOh+zQ75aSID8pnF0MTE3dI5M5ezi3KFjkEFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=I8ce8okFxKp8rdEiQK5ZYDx0fau1KlSk0Fvkzm/2MPYHVfEDBbWx+E7OoDrdbEqxcL CHECpPiFvKnYSFZKU8oHsNM45TGqe4prFXAKe5CJhqfO7zVYjfqmdYBD5BRjhU+dTT5u sfyG+a6kXkXccI0O54rWeSYcOAmIQt0vKv0GU= MIME-Version: 1.0 Received: by 10.216.89.12 with SMTP id b12mr622577wef.33.1274260250666; Wed, 19 May 2010 02:10:50 -0700 (PDT) Received: by 10.216.177.146 with HTTP; Wed, 19 May 2010 02:10:50 -0700 (PDT) In-Reply-To: References: <4BF3A72B.8020903@mageekbox.net> Date: Wed, 19 May 2010 11:10:50 +0200 Message-ID: To: Tjerk Anne Meesters Cc: Frederic Hardy , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Constant and expression ? From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, May 19, 2010 at 11:03 AM, Tjerk Anne Meesters 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