Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105431 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26622 invoked from network); 25 Apr 2019 10:15:08 -0000 Received: from unknown (HELO mail-io1-f53.google.com) (209.85.166.53) by pb1.pair.com with SMTP; 25 Apr 2019 10:15:08 -0000 Received: by mail-io1-f53.google.com with SMTP id y6so10444039ior.5 for ; Thu, 25 Apr 2019 00:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Gw5oFEoxNjuMzAtGO3xpAg7MdmSvCHe83sB/y+HFDME=; b=K9QxhYWLcppN5gIgCg+nyN60HIyr4CVcqmyu6LY7V4DXZ5p819rC50H3Ox3xZBWofS JWNwLkWg+l/y+xfEX2xkWvmiey0OIXP+TuP+wWkVsOcjtMv1ysZkjKBZC4KwxvGiOGd9 QoA7PINrC3PaGr3eOi34mz2sWyxFhrh7RPHlnuAr+L6LK3HM+kZvkx/hTtXlvSaQ0fv6 4mMoFLIn5kFA66DF+2LKhU6LbvCD2tmh5r68bzJT/DJIOfYGp69p+8fjAK0PT4FIpXY3 +qoy9/L+kbsYazT7rZFlkEA9j+JbxZnyyU/daPUlo6vRa2KGfDcRd2dLsOQHCQPJhajh mRpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Gw5oFEoxNjuMzAtGO3xpAg7MdmSvCHe83sB/y+HFDME=; b=Ozjx1TNadQ8KdmP9Hn2oeReK6nya1lnGego3Qb6eAIcuR9hfGBf6buyFwLkTazjUd9 nJZrBAwpI1b9pDs78XrXuNtgw22VgA3ue/KrLIRtT0oSbIsBUdXdqUFhG2DXIkh4rMdw DzDlbRVwPCZn0mFmexpk/SVLD5DFbPeOJrzoMzyy5HSg34+uIHZRgsu0MVmaQVoU3tXK qaJvApMYXbizqD69WOFgyNQQ2mbzYgztahODpKEnrzTz3LBFHZSpoxumSL6SPtaArzcU iWgllz/Ov5tzNoJ3o+BaM45qU/IMQRYZqZuSkJneZ99qQl9RawrLjtZdqBNJPMwG5tbZ fUOg== X-Gm-Message-State: APjAAAUwf1mOsV1e1QIt6yVWNbffrY+/01OaRbNVdmt64mql4Sr21xCW HPtQPguV8XlLFKIYSZaS6BrjHwGANqSvLGNFl4jU+uEBVXM= X-Google-Smtp-Source: APXvYqzrDVTCobtHqw6xcOulmsoUMj0VVCLzzFzzHSDWLs7OJiWwdZtGoD03mhcJ4A5VERpMD+CWW5BBHoXC6puOs/g= X-Received: by 2002:a6b:ca87:: with SMTP id a129mr6786818iog.187.1556176558095; Thu, 25 Apr 2019 00:15:58 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 25 Apr 2019 09:15:42 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000f4061305875596b8" Subject: Alternative approach to short tags deprecation From: nikita.ppv@gmail.com (Nikita Popov) --000000000000f4061305875596b8 Content-Type: text/plain; charset="UTF-8" Hi internals, As already discussed in the corresponding voting thread, the deprecation of short tags as proposed has a high risk of causing inadvertent source code leakage. The RFC proposes to change the default of short_open_tag from On to Off in PHP 7.4. Any website using short_open_tags without explicitly enabling it (relying on the default) will leak source code unless proper precautions are taken before switching to PHP 7.4. Disregarding the question of whether short tags should be removed at all (let's keep that question in the other thread), I do think we need to reconsider the deprecation approach. In particular, I would like to propose: In PHP 7.4: * The default value of short_open_tag remains as is and enabling short_open_tag does not generate a deprecation warning (otherwise PHP would warn in a default config). * If short_open_tag is enabled: The first use of