Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106261 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9664 invoked from network); 23 Jul 2019 23:20:51 -0000 Received: from unknown (HELO mail-wr1-f46.google.com) (209.85.221.46) by pb1.pair.com with SMTP; 23 Jul 2019 23:20:51 -0000 Received: by mail-wr1-f46.google.com with SMTP id p17so44524050wrf.11 for ; Tue, 23 Jul 2019 13:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=OutmYINNyDl5Rc3ZCX3KJfLZcLOWq6dWK1Z6MirxkP4=; b=UZ4hNkLnvVtE8gh7nAZPuB8cXhTjUINef2tLPq0CiiwxK4JeCX2bixNRdLriMqRavG zQPgBLE/MO9YA4ilMEaCyIV4AfW2cfuyTA6y4g7sRzNtHoWywjelwzKB9Ac5v4JAx73R 2loDKaxKD2fqJvpj4sTPERFsH4RUI6cgegtM3VqORD2p5sNDe09rpadiUNxlcTxstvhi WNAcvfyu5Rif6VRhx6d9kR+1gMB6WrKrQQimdbxoZRczKxZbr84uyu8LhCsN0+cB2/uS DDWaHcFmKtBBhLFQlChggKeXWrWarZ2cjZrPYF/3cK+uFaXVk5Obweht5/lu9NcQ3z5G R0iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=OutmYINNyDl5Rc3ZCX3KJfLZcLOWq6dWK1Z6MirxkP4=; b=Cv370Tm6oVSzipLp8+K97K2OBvh3D9aLupW/6Pu5x5pssBeEAFo5XbqssnwXeOSP0y NWdMAKTk8FKXrg8eE7dL8f89kvIvsAlm12eQhIJ3J2KTDe2jlsH7Z+ZgYCRw7dm+BO8L 1LA/3ESQFfzmZsM7T7hfdTmBUnvMSuhsvJ0joLYQ9pxjgsU+VN0EFoYPCqzyEEhhcoLS Tl5ZPdfvUnKb7e19f747JEPiEZss+5j5tBhvKN/GVxXnKbkLqr/LeGjiP0MFuwdQ3mbg J0abZDg9Dc3PkNoiCUJwF7ZoPShEXcwNNjBywB9NW6HZkOeoc/C4EZBlGLQi/S/J/GSm S4Rg== X-Gm-Message-State: APjAAAWm6OmTQkZ0yX6Fo/FHT/aDex73lRmx9D/+1kgogB4xXOrYyU5k trebfe0JI+vknkpLVbuEf2hyIt25 X-Google-Smtp-Source: APXvYqwpV7Va60LDoEyfBzWsb4umiPn0YNGMZF1xRBdwpdPxtHF/3RNsc4NVjWvbZS+hqKRZadsGyg== X-Received: by 2002:a05:6000:9:: with SMTP id h9mr14487039wrx.271.1563914644855; Tue, 23 Jul 2019 13:44:04 -0700 (PDT) Received: from [192.168.0.16] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id z7sm40981765wrh.67.2019.07.23.13.44.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 13:44:04 -0700 (PDT) To: internals@lists.php.net References: <28a9ccf7-f5be-eb1e-999a-06170beeed4b@gmail.com> Message-ID: Date: Tue, 23 Jul 2019 21:44:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <28a9ccf7-f5be-eb1e-999a-06170beeed4b@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Deprecate PHP's short open tags V2 From: rowan.collins@gmail.com (Rowan Collins) On 23/07/2019 21:22, Stanislav Malyshev wrote: > Worse than that, code using short open tags deployed on a server using > short_open_tag=0 will leak application code, because short open tags are > silently ignored. That's precisely what this RFC is intended to prevent. By deprecating *and simply removing* the functionality, as implied by the previous RFC and initially implemented [https://github.com/php/php-src/pull/3975/], we would make such code immediately visible in PHP 8.0. This RFC removes that danger by amending the 8.0 behaviour to *explicitly detecting the tags* and throwing a ParseError. > I am not sure how it is supposed to be an argument for making such > behavior the default. This RFC does not make anything the default that is not already; instead, it keeps the INI option as it was before, but changes its behaviour: * In 7.4, the first use of "