Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105462 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74493 invoked from network); 26 Apr 2019 16:49:57 -0000 Received: from unknown (HELO outbound0.mail.transip.nl) (149.210.149.69) by pb1.pair.com with SMTP; 26 Apr 2019 16:49:57 -0000 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound0.mail.transip.nl (Postfix) with ESMTP id 44rFnj30W0zxPHs for ; Fri, 26 Apr 2019 15:51:05 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 44rFng2jzwz12LR3 for ; Fri, 26 Apr 2019 15:51:02 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id g3so4531547wrx.9 for ; Fri, 26 Apr 2019 06:51:02 -0700 (PDT) X-Gm-Message-State: APjAAAUBxgfde7c6WHV2yxFN5V29jYV+Th1q2cKh7eOtXa71Dga/EfxZ 6LyBFkbnH9zVnVj8LhbDBfnkZ89CWpLWXY29V9Y= X-Google-Smtp-Source: APXvYqy9zZH2uFlX3m6O3WX3c6Da4lOk87/N1uY8DJXuAMBChbCjcWn6crn1ITKaSmIFv+svF6evJw3Wn7tO2qo6yWQ= X-Received: by 2002:adf:9ccb:: with SMTP id h11mr4128690wre.257.1556286660068; Fri, 26 Apr 2019 06:51:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Apr 2019 14:50:48 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000008accaf05876f3987" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1556286665; h=from:subject:to:cc: references:in-reply-to:date:mime-version:content-type; bh=yF3dgPjBCoCtCogrgIPwI4AnjCCj2VmiGGVGdFjVKSw=; b=kaTsMUHbH7Kxyhlb0JIDaP7e4vDBB6UGFDJjds6pAPFtKXY/fn8m/jJGRH9pDehbdEOXwD NeKGJ2fEzihI4cgP3pfgpq+2L3t4HbXu+DLBxOfBe0yTnCgKKMpNFWaZztLkRMgQyyP94h 833vAW3EK6UZ/DBuC3Sn7ffL6r9gWoSpYPsqrS6yGt/uw0HyzD9j5q+5sM4GBeey1xK5JF NKOG+sLxW3cWK/8uCJVoA2k+Ta8qE0yb8LEzIa3qNj+dhQTPmICo8VloRl0HJTAVrC3hZG ogpHVXZZXcZ/S0tXPWTe+JD9BDIT9TT8f/AkxqGSu0nw0BMiqofsppsrT4Skqw== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] Alternative approach to short tags deprecation From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --0000000000008accaf05876f3987 Content-Type: text/plain; charset="UTF-8" On Thu, Apr 25, 2019 at 8:15 AM Nikita Popov wrote: > 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. > > 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). > Hi! Thanks for providing an alternative to solve this. But I'd say to generate the deprecation notice on first use of the short tag both when the user is relying on the default and when explicitly enabled. Although it may be annoying that we are throwing that notice on default config, it's the only way to warn everyone who would be affected when the default changes or the option is removed. I'd prefer to be annoyed than the alternative. Also, given that the notice will go away once you got rid of all your usages of the short tag, it sounds manageable to me. Regards, Pedro --0000000000008accaf05876f3987--