Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87179 invoked from network); 6 Feb 2016 06:11:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2016 06:11:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.44 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.44 mail-oi0-f44.google.com Received: from [209.85.218.44] ([209.85.218.44:33400] helo=mail-oi0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/B0-12953-09E85B65 for ; Sat, 06 Feb 2016 01:11:29 -0500 Received: by mail-oi0-f44.google.com with SMTP id j125so54111927oih.0 for ; Fri, 05 Feb 2016 22:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ty03MoA4aiMoY/VZ6w7U7cq1X3iCPbmAHQx7NVVK4kQ=; b=yV6DnY0aDvnFZxuZUmWBnTSOLYs+WraBl9IdNp7dFDEoPIxUJMR3Qmj36B6AEdCHDS oXeVUM3q2c/lytWU+ifieXCLZ+UHD+1cUw5ne5AuLEIlVrcqVkEKgJ2XiHcm7Rij6ae6 scUBV1ykAEyzN8I1w5Z+OrdcEzBuOfCbLhFtkOFJ6IPS7tJ+3/jHx0YKDt0h0miqilhM 2voSuYlC+GqK6M5VGH82ChXD/PUEVpFnKAGpCyCA/aR0JbUYCAqb1LF/jvGJKPWAtnLy W8gDF+9wLTt3Spxpo9nVbvTpjvt0aI8cPm3ynqPyDwzDsgkCuqlFXpgXQQg1afOH65XW xrwQ== 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:date :message-id:subject:from:to:cc:content-type; bh=ty03MoA4aiMoY/VZ6w7U7cq1X3iCPbmAHQx7NVVK4kQ=; b=eFRMlqnXKWXSq1vRIrlQeDUJF/06XcDxDWsXX7Z+Q2gg/ukPQwtAAiAbbaxtHzqXBh 20TPUQTCmc4sjCxpqq9mtmC4bFspg6s13HtH6Y6tqxUIIK3vb45KWpo+WLQ25duWGcs0 tXEYJLaxwjktIVVNde9yisjx6VCYiJMoOmwMoLQ2k++sW6bHhGyflPE5hrNAlHn5OtVY SjCBmX4O7/CAejZCalPCq1I5HaEvt7ZX9idIaCTLmqa0WcHR3pVWtIFoFQaUKfSDovPQ FDzr2gnNVciWIFR/ul06E2E93qHQTbwLNdBi9g1nWOD7qxhqq0VDjoSKRtlG65BQGfiI IEMg== X-Gm-Message-State: AG10YOQw8Yu2TTMGIesj9IXUgua5J1HdAx5HRU6xkKgS/qI2z3ACMyOmQrkBFlI4MsRDZIoOsa+0jVATQkPDiA== MIME-Version: 1.0 X-Received: by 10.202.218.214 with SMTP id r205mr11206983oig.90.1454739086225; Fri, 05 Feb 2016 22:11:26 -0800 (PST) Received: by 10.202.95.68 with HTTP; Fri, 5 Feb 2016 22:11:25 -0800 (PST) Received: by 10.202.95.68 with HTTP; Fri, 5 Feb 2016 22:11:25 -0800 (PST) In-Reply-To: References: <56B233C0.10301@mprelu.de> Date: Sat, 6 Feb 2016 13:11:25 +0700 Message-ID: To: Sara Golemon Cc: Davey Shafik , PHP internals , Matt Prelude Content-Type: multipart/alternative; boundary=001a113d2c0679b97f052b13d6fb Subject: Re: [PHP-DEV] Re: [RFC] Add PHP_ENGINE Constant From: pierre.php@gmail.com (Pierre Joye) --001a113d2c0679b97f052b13d6fb Content-Type: text/plain; charset=UTF-8 On Feb 6, 2016 3:02 AM, "Sara Golemon" wrote: > > 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". :) Yeah, preprocessor (gcc or other) sounds a bit awkward for php while I can understand why one or the other would like to have it. But still, having php code cluttered with #ifdef like codes is not very appealing :) --001a113d2c0679b97f052b13d6fb--