Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52653 invoked from network); 3 Feb 2014 11:28:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2014 11:28:34 -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:45794] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/13-35654-06D7FE25 for ; Mon, 03 Feb 2014 06:28:33 -0500 Received: (qmail 26171 invoked by uid 1009); 3 Feb 2014 12:28:28 +0100 Received: from 209.85.216.44 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.44):. Processed in 0.071837 secs); 03 Feb 2014 11:28:28 -0000 X-Antivirus-MYDOMAIN-Mail-From: bof@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.44):. Processed in 0.071837 secs Process 26157) Received: from mail-qa0-f44.google.com (gmail@bof.de@209.85.216.44) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 3 Feb 2014 12:28:28 +0100 Received: by mail-qa0-f44.google.com with SMTP id w5so9658021qac.17 for ; Mon, 03 Feb 2014 03:28:27 -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=ayxHdruPT+ZKsCe8RiqBzOFjW32qnoJF8d19S5CedgY=; b=CeamWK11s4BaHFK1cYHRV9pq6i3F/ouHvfw775rfZPYEyS0YvD+TJAvGDLTHAu5n68 /kBf6bXa/5WYAmsd8KKywc0umqND0VcKCyQ1qTcaMrgRN4hrk6Lh1shL6H2L41PH3KP0 0OBgmIeBup2E+6qKMG8Dsb76UOZDogr6q/E7QJpw0xZypBDpDbaYgmVPVm/apwcE1nYp 3n4QCkl+8rNmpa2/JMSIPrhiqy5s/TyPSrFrtfeJhYMUu7DPtSKFhltuYRhYfGbIjcUU pZe3xrjzIrcMdj1mA7DpPp5SwKv8rSKc79ucgZw8s6jL5IJhYqnRhNuK04F4CiMlmSM8 /hdw== MIME-Version: 1.0 X-Received: by 10.224.14.70 with SMTP id f6mr55576513qaa.31.1391426907061; Mon, 03 Feb 2014 03:28:27 -0800 (PST) Received: by 10.140.94.75 with HTTP; Mon, 3 Feb 2014 03:28:27 -0800 (PST) Received: by 10.140.94.75 with HTTP; Mon, 3 Feb 2014 03:28:27 -0800 (PST) In-Reply-To: References: <52EF4BF8.60005@sugarcrm.com> Date: Mon, 3 Feb 2014 12:28:27 +0100 Message-ID: To: Yasuo Ohgaki Cc: internals , Stas Malyshev Content-Type: multipart/alternative; boundary=047d7bdc781086c32204f17ed27b Subject: Re: [PHP-DEV] Declare minimum PHP version required? From: bof@bof.de (Patrick Schaaf) --047d7bdc781086c32204f17ed27b Content-Type: text/plain; charset=ISO-8859-1 Am 03.02.2014 11:56 schrieb "Yasuo Ohgaki" : > > We may extend declare() more. For example, loaded extensions. > > declare(module='pgsql,openssl'); > > With opcache loaded extension check may be completely skipped. I like this. It would be even more useful to me - kind of a more structured #ifdef - if A) it would work at the block level, not failing, but eliding the block: declare(module='redis') { use redis server } (instead of a class_exists check with the associated runtime overhead, both in execution time and opcache memory usage 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) best regards Patrick --047d7bdc781086c32204f17ed27b--