Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72082 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54217 invoked from network); 3 Feb 2014 11:30:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 11:30:48 -0000 Authentication-Results: pb1.pair.com header.from=bof@bof.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bof@bof.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: bof@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:45868] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/63-35654-7ED7FE25 for ; Mon, 03 Feb 2014 06:30:47 -0500 Received: (qmail 27806 invoked by uid 1009); 3 Feb 2014 12:30:43 +0100 Received: from 209.85.216.174 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/18429. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.174):. Processed in 0.035127 secs); 03 Feb 2014 11:30:43 -0000 X-Antivirus-MYDOMAIN-Mail-From: bof@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.174):. Processed in 0.035127 secs Process 27789) Received: from mail-qc0-f174.google.com (gmail@bof.de@209.85.216.174) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 3 Feb 2014 12:30:43 +0100 Received: by mail-qc0-f174.google.com with SMTP id x13so10626104qcv.5 for ; Mon, 03 Feb 2014 03:30:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ui9MowVV/B/TNPkJjlAdVPeHK/ZUYDaxSwGG526IITU=; b=ZV1XaJPOZb4tyOmRAMR/lkCPvWHFN15Dp0MFEiqqBcRahYz+/ACdyC6R3N3SyExYVP 7Z+MZtCbh7LhTQkO+k1AWPXlKMCa4VOPaOM0fksX3B2m642/dCpmozdTAUq/OILY2xwn 5bVBaumjWuGYY0SF1jL2oc9LwXQEv306cFt4TQX5fMBzaaaiViozYDJumNrE+wwcl2WS QKhbjRXpRIIWj8gBNlV79Yu9+B00bREsKDny7iV0iVPY2JbDEQvWCuPy2NCFDlwJbs+X u85JqclTtj+3Lc6GFJ0iMD90GSNVomzvWzvNjTDhA/Ij75KP4P8DaotOkEkCwU0942VZ gjKw== MIME-Version: 1.0 X-Received: by 10.224.167.84 with SMTP id p20mr55707491qay.24.1391427042674; Mon, 03 Feb 2014 03:30:42 -0800 (PST) Received: by 10.140.94.75 with HTTP; Mon, 3 Feb 2014 03:30:42 -0800 (PST) Received: by 10.140.94.75 with HTTP; Mon, 3 Feb 2014 03:30:42 -0800 (PST) In-Reply-To: References: <52EF4BF8.60005@sugarcrm.com> Date: Mon, 3 Feb 2014 12:30:42 +0100 Message-ID: To: Yasuo Ohgaki Cc: internals , Stas Malyshev Content-Type: multipart/alternative; boundary=089e0153747e9c0fd704f17eda93 Subject: Re: [PHP-DEV] Declare minimum PHP version required? From: bof@bof.de (Patrick Schaaf) --089e0153747e9c0fd704f17eda93 Content-Type: text/plain; charset=ISO-8859-1 Am 03.02.2014 12:28 schrieb "Patrick Schaaf" : > B) it would support testing for constants > > declare(const='ADMIN_SERVER') { ... } > declare(const_false='DEVELOPMENT_SERVER') { ... } > > which would really be a plus for us, using MINIT time constants provided by the defcon extension (http://github.com/infusion/PHP-Defcon) For this use case it might be useful if an extension could simply extend declare with additional keywords, and effect that code elision as a reaction to the keyword / check being used and done at compile time. best regards Patrick --089e0153747e9c0fd704f17eda93--