Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52453 invoked from network); 5 Feb 2016 20:03:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2016 20:03:02 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.217.171 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:36305] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/56-07203-5FFF4B65 for ; Fri, 05 Feb 2016 15:03:02 -0500 Received: by mail-lb0-f171.google.com with SMTP id dx2so55721941lbd.3 for ; Fri, 05 Feb 2016 12:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=let3VQOpOt+epsV2IZvPIU+yp+kVAZyyqplRfPExcVo=; b=txQaOF3VAovW2comBKgqSA9thSbTcU2ONTDWh/xzzKBTQ8nCzaihZg7BrwekS1GRob iwtlSt2bdMslaSjA7bOShnKv4frgGM5AF0G5OcR2h3Bek2+EBhy0bRjzdCHqHqHyPA4I i+DsGn0kXAMLZckNrO52sP+d7LClWok9U+U6HcdQHrzpBHF26m9rGhmFZ3zqkDGY5rtN X85ya4RKQo46Saw4kZHQYpc/rytMXIK+GBiUc02+FAD5rpJipVZ1dTJzS+pXrkiNSmGc Ni5fDJpnR88N2LkqRVJPzyRygnSGrXJLauvtMeWd0DszI7Fq1IouKaZyn2yfzwd6UZ8X cRGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=let3VQOpOt+epsV2IZvPIU+yp+kVAZyyqplRfPExcVo=; b=cje88h80COTECp8zTr0Vorlo1Ys9kgdKpL6eiLhunUl7OjqERHaJ10cqpfq0S+oUHi dtvRPLTHu+MN9DoXr5RDEvJqq73xJXCzwmW+Q2qFiCyGC2syLi0zsByP+KwaJ5rWmvlg IZU3uCEGYwdsBSJjNANeTxbNcHJAE4NduE/mQLuTnsS7CT8MPO6TG4VdZ0eC/yB/vo+V bPnEkKm/tXEWXs3o9YFu4GqEB+fUjNGgp9ByHRP8t6Ct0nAWTrtLD0DVJiD642r8PXaN FWEWYK166aP1QtUHXy9Ng9NwFzl+XdFH+8fZ0DvQWuFDoggiQUkFq+fHqwu8efxdLsE6 LnNw== X-Gm-Message-State: AG10YOSl82yt/f6wpk9zKe6HHOlqeuUyNYWg0MDC7scJ0bUTTTRkDFm81eZdUjALpms0WQcJCLKaYcLlWBS2OA== MIME-Version: 1.0 X-Received: by 10.112.143.163 with SMTP id sf3mr6512597lbb.117.1454702578289; Fri, 05 Feb 2016 12:02:58 -0800 (PST) Sender: php@golemon.com Received: by 10.112.37.44 with HTTP; Fri, 5 Feb 2016 12:02:58 -0800 (PST) X-Originating-IP: [2620:10d:c090:200::8:ce9e] In-Reply-To: References: <56B233C0.10301@mprelu.de> Date: Fri, 5 Feb 2016 12:02:58 -0800 X-Google-Sender-Auth: _3u5MTSYye9-Fj9us1NDt4FZYnY Message-ID: To: Pierre Joye Cc: Davey Shafik , Matt Prelude , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [RFC] Add PHP_ENGINE Constant From: pollita@php.net (Sara Golemon) On Fri, Feb 5, 2016 at 8:20 AM, Pierre Joye wrote: >> I do however like the idea of feature detection - I wonder if perhaps we >> could do something where it's done at compile time and therefore minimally >> impacts runtime? > > This could be what you actually need. A #ifdef equivalent for PHP. I > remember a discussion about adding these features to the core to allow > to enable/disable portions of a script at the parsing/compilation > level. Doing so allows mixing codes being valid for various > implementations inside a same file. It is especially important for > features using syntax not compatible with a php.net's PHP > specification (for instance). > This usually results in some half-hearted attempts followed by "just use gcc's preprocessor for that". :) -Sara