Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96120 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67416 invoked from network); 23 Sep 2016 21:31:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2016 21:31:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.213.48 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.213.48 mail-vk0-f48.google.com Received: from [209.85.213.48] ([209.85.213.48:33424] helo=mail-vk0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/13-51000-12F95E75 for ; Fri, 23 Sep 2016 17:31:14 -0400 Received: by mail-vk0-f48.google.com with SMTP id z126so2432419vkd.0 for ; Fri, 23 Sep 2016 14:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=n22xg9me1PsgL9FZB6qmN7/gR5zO+rzg+10s97bliUA=; b=hL96Vq5kFjkOAlj+bJ4yg0/l+ydgM1DlWL8yor4MhVshzq98n4ecmj0IGxf3D0m2hU vFULb/oKiWMJbRSgvyE/opBphhjOs+NDlA061EDmm3lgOUcXZXWNpmxc65XSsNw/4Jkv AE1R4ijr5meDsUkpgZ+8I7r4OXZUOFuWX1orM2r8HNStsT+JCLJl2arbhGZFNhaQCjO4 J+8/w8dj3cum5IE6h7MCHjo+bFjIDSjBeHRHSDBbJiPcOg1l/TD/cfixyXxTghiuOlT7 ofvS9/GfDXGmJGQ2AYLkUT4AV4xQCDTanfSYTEldZT6JQxbBvv+6OD83cyE9oKYnmEq7 EScQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=n22xg9me1PsgL9FZB6qmN7/gR5zO+rzg+10s97bliUA=; b=HKtknL4MuRTlnu4HlexIod1eI98GQ4owDvvF7Xn3+d47EXJhD5uTiYO62zy3DU5r2U i31FIhuAb5utIzLApBWUJH1InSxtr3PakvVij1UNRt11bkprRqwDSRXczzCLEXJ1roar XAlWc9vQXt07hJgXGyMW4u5m5N/FraBdKk+U4eGWObC1g0ybBX9yH99YciiID9lkAQEf QMwXZGwZYbAHyF32GuwOXh/uqmBQ9VPUzYoDLpfbnUl25Z0EvU03JucHdx4Ea8HLBmj4 R07/nHOfAdpkD7Y4hhh+pM0x6m65geGjAtxKYtMx7bvpuf1CQ2JVne64/5Y8IUeux360 yS3g== X-Gm-Message-State: AA6/9RkfyY519bE7ZkTD3DkPiXEt2bHhyQz+Iz+xfqS/DJAI59pSUwuFdYy6gMfgWvpIY9U91HIfNl2Q5Hpduw== X-Received: by 10.31.125.77 with SMTP id y74mr374403vkc.1.1474666271129; Fri, 23 Sep 2016 14:31:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.69.4 with HTTP; Fri, 23 Sep 2016 14:31:10 -0700 (PDT) X-Originating-IP: [2.99.239.160] In-Reply-To: References: Date: Fri, 23 Sep 2016 22:31:10 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Namespace-scoped declares From: danack@basereality.com (Dan Ackroyd) From the RFC: > it might be beneficial to add a supports_declare() function, which allows you to determine whether a certain declare directive is supported, without resorting to a PHP version check Even if we don't have any directives that need to be checked yet, I think that would be a good thing to have. It will allow people who wish to experiment with new features to do so more easily, which will make it easier to evolve the language, without core PHP needing to be aware of all the directives. cheers Dan