Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63893 invoked from network); 7 Sep 2017 15:34:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2017 15:34:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.174 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.161.174 mail-yw0-f174.google.com Received: from [209.85.161.174] ([209.85.161.174:35243] helo=mail-yw0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/14-10715-21761B95 for ; Thu, 07 Sep 2017 11:34:42 -0400 Received: by mail-yw0-f174.google.com with SMTP id q80so253663ywg.2 for ; Thu, 07 Sep 2017 08:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lK36iEzCue0fE2XCtPlFUi36vmLwwy8NObU9EqLs2XE=; b=SXhv6lNlJt9v7049ZJyR6G/VklmbIqf6kyT/iaKUQNNnVrDJ0E5eqG5s7+fZubCRTq PZWimvLO/Y5ziRBJb18K/fOQFU4Nh8b2MBtNaZtWw2dIp9H+IZCEvWbfkd7D5JqktVyE OGOjrld9WN38oYKKh5aLmtY+Y+8zBE0gG959B6/YUy1Mr3m/CyZ+VEqOWU8wim4AV0Mb cJCcDRBPFdKVULUFS+NbuUqyMqfps1XHfNpRXSWXfndhIH+yP+7eLRDprT3xUp9EqJ78 +YqNjwCoG5qI/p5KCChuXwMPbEioKsLea0bPMhU9KPrQzCSCQVY4bTtcLjjxUGA6rNz3 D8Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lK36iEzCue0fE2XCtPlFUi36vmLwwy8NObU9EqLs2XE=; b=Soj8huMxaxyzitrBdDymW5/y2rcKvPeMKmyjOSD7wKY+3YoQP/MbYT6LZsJwDUvb2Q bJb07sYiPUub5lzrw7qELHqTSkbCbNt7C57G2sMJXs0RuVtcxb8xnPHGwTF3Wz5t+Fxi nox5XT9pDT5bABK1sd/1iXTc8vhOV/0RQmYP+PoACLaNI7CQATPzVMfc291VL5/rRwBh pgOnuIvgvvZyRpMzSpTQ5I1zqcc28boWlp50qCzuNP9cE15RiqdIv0qMyUHk6kF/tj9p 7ynIbYVvMf6p9eRksDm/JunRLGW4j4I2qSghVaiTrYU8qbVUWJXYVk7ZeJM0H+ShtXnN 0L4A== X-Gm-Message-State: AHPjjUjOstXmnEsBMJGoQSYSdpfnDP29oJPK31RnF6sqo+Uhfdw9aG56 lU0c+qaZg4QAVCKNYgs4Eyl9JxbKew== X-Google-Smtp-Source: ADKCNb7S2Iw5Iq4SCFw990eTkC8DnXEJotmnhZPPMfwSseu04OCRQgFWcwbLzH8d90BEDF6nY1WrQiQJAkp3qMvmkMQ= X-Received: by 10.37.110.70 with SMTP id j67mr2525159ybc.41.1504798479337; Thu, 07 Sep 2017 08:34:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.13.195 with HTTP; Thu, 7 Sep 2017 08:34:38 -0700 (PDT) In-Reply-To: <89.E2.10715.84651B95@pb1.pair.com> References: <8C.6B.10715.4A4A0B95@pb1.pair.com> <89.E2.10715.84651B95@pb1.pair.com> Date: Thu, 7 Sep 2017 11:34:38 -0400 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="001a1148add6d1cb9f05589b3220" Subject: Re: [PHP-DEV] Consider only ignoring newlines for final ?> in a file From: tendoaki@gmail.com (Michael Morris) --001a1148add6d1cb9f05589b3220 Content-Type: text/plain; charset="UTF-8" On Thu, Sep 7, 2017 at 10:23 AM, Andrea Faulds wrote: > What I want to change is how it behaves in other circumstances, i.e. > templating. > > Thanks. > > I get that, but I can think of one example where this innocent change might BC break something. You cite this change being for templating - this implies the php files with this feature are being loaded by another php file with require() or include(). Suppose someone creates a template wrapper with this circumstance in mind. Instead of doing the obvious, omit the final ?> tag in the template, they write code in the template wrapper to snip the last endline character from the included file. Depending on how their code is written your change could now become a breaking change: for example they just lop off the last character of the template's return without checking to see if it is indeed a newline character. --001a1148add6d1cb9f05589b3220--