Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:106404
Return-Path: <nikita.ppv@gmail.com>
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 55094 invoked from network); 7 Aug 2019 10:44:47 -0000
Received: from unknown (HELO mail-lj1-f173.google.com) (209.85.208.173)
  by pb1.pair.com with SMTP; 7 Aug 2019 10:44:47 -0000
Received: by mail-lj1-f173.google.com with SMTP id t28so84608069lje.9
        for <internals@lists.php.net>; Wed, 07 Aug 2019 01:11:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :cc;
        bh=1ADR+qpHY7+blG2+FwuxX6edsAV5WpCzSl8NH8bm5CQ=;
        b=l0TwxoVLIv2GFlJYR4aAbJBw1NBO3dUcc6kuKVSmKsyVdUUfkwa5LAsFXf9Ni97/dg
         1PWqBNR400zk5JiF+7sIOMfmimnu5iia4DaTGKD2D2plZBYRQesVts/fkK6FUTO2ojpM
         qMwPyQOfFT3nv4Qglwkw7tS0qhZzTMqaylc2FnUl/rDL5X0ibIFfvfoxz1whFlC/lNfR
         rqrBYf4AElPuEuSseQYR1fe3OaW288Oq7QtC9aduew0rxMPCvkFALBKvWzGxkSvGN40s
         HnDi5+SNOgc6QF4DezqfVrBy4/rD4TijjFzsoWy6f8/AsSLJbte3oHrdngpb/UZBP4P8
         /E2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=1ADR+qpHY7+blG2+FwuxX6edsAV5WpCzSl8NH8bm5CQ=;
        b=dSl232Imk4jxaDpFfggiKzNa9j3COLopps9+PgWogMaBffxH8AWEJE2CzWWCiMiG4u
         ZXV94xeiBcehkIL4IKhDd4o3legJuTvckTQLgsg8PVWqCNmN3ugDep/7bnGc3vm3eUEJ
         642c872C4r6g0kC/ON7pb12CGlwWOHcF67M6dfDLOPt3Z/0a65OigiHf7ZNF1lYmB0ho
         +wtrPy+hqBDFHay8SbJ67mM1nEtoVAT356JT7WRD/ettAqevjRen6YpZOamL/BSUutmz
         uAvA4NZ7iI/5saqZLj+bQqlJpYZet+33JqU7hkulOPBOf9vI8tGw2k0uCEF2K8J82ANZ
         dGew==
X-Gm-Message-State: APjAAAXej4KTmmTsNhTV9rULGzlNuyGmSjQETQF6rZU/bZajESBMeZpS
	5eoWeSbwru23bgCt1iPWCRIDcJE1NdTyjxmvPyg=
X-Google-Smtp-Source: APXvYqyTgUseD5puhvc/2NyfSGTGu3w8f2z9i3d26JrjfZ4mih5IGRrurdxcBjSUpq1sNsC7A4gcfoSTulOtu6taVgQ=
X-Received: by 2002:a2e:89c8:: with SMTP id c8mr4178469ljk.70.1565165497100;
 Wed, 07 Aug 2019 01:11:37 -0700 (PDT)
MIME-Version: 1.0
References: <CAFPFaML19B_RehrUQLEy_oFae-H5r3+BpUGg=GF1js83cJpJqQ@mail.gmail.com>
 <CAF+90c__-duwVG7tOKDmrKAnV3B+7rKWcxh1kGZ+aUgU9MNSxQ@mail.gmail.com> <31F25B65-D8D0-4F33-97A9-C978CBA8A7D6@gmail.com>
In-Reply-To: <31F25B65-D8D0-4F33-97A9-C978CBA8A7D6@gmail.com>
Date: Wed, 7 Aug 2019 10:11:20 +0200
Message-ID: <CAF+90c9-trfRtCSt-qEcHmu_rgiNPk8HuMT9OsUvJDUYp1dDug@mail.gmail.com>
To: Claude Pache <claude.pache@gmail.com>
Cc: "G. P. B." <george.banyard@gmail.com>, PHP internals <internals@lists.php.net>
Content-Type: multipart/alternative; boundary="000000000000783065058f827d55"
Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags, again
From: nikita.ppv@gmail.com (Nikita Popov)

--000000000000783065058f827d55
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Aug 6, 2019 at 11:55 PM Claude Pache <claude.pache@gmail.com> wrote=
:

>
>
> > Le 6 ao=C3=BBt 2019 =C3=A0 20:46, Nikita Popov <nikita.ppv@gmail.com> a=
 =C3=A9crit :
> >
> > On Tue, Aug 6, 2019 at 1:34 PM G. P. B. <george.banyard@gmail.com>
> wrote:
> >
> >> The voting for the "Deprecate short open tags, again" [1] RFC has begu=
n.
> >> It is expected to last two (2) weeks until 2019-08-20.
> >>
> >> A counter argument to this RFC is available at
> >> https://wiki.php.net/rfc/counterargument/deprecate_php_short_tags
> >>
> >> Best regards
> >>
> >> George P. Banyard
> >>
> >> [1] https://wiki.php.net/rfc/deprecate_php_short_tags_v2
> >>
> >
> > Side-note: Even if this RFC fails, we should probably still make it an
> > error to use <? without short_tags being **explicitly** enabled, so tha=
t
> we
> > may flip the default to off at some later point in time. The current
> > default being "on" despite their use being discouraged is half the
> trouble.
> >
> > Nikita
>
>
> That would mean in particular that XML documents could no longer be
> preprocessed by PHP without boilerplate around its `<?xml ?>` declaration=
.
> I doubt that this is a more acceptable breaking change than deprecating
> short_tags.


To clarify: What I had in mind is that use of <? results in an error if and
only if short_tags is left at its default value (of On). If short_tags is
explicitly Off or explicitly On, everything works as usual. Embedding <?xml
?> in PHP code requires an explicit short_tags=3DOff right now, so the
situation there shouldn't change, unless I'm missing something.

The only motivation here is to allow us to change the default to
short_tags=3DOff at some point in the future (say PHP 9), after enough time
has passed where short_tags cannot be used by default, without explicitly
being enabled. We can't just flip the default right now due to the usual
code leaking concerns.

Regards,
Nikita

--000000000000783065058f827d55--