Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105463 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 78827 invoked from network); 26 Apr 2019 16:56:02 -0000 Received: from unknown (HELO mail-it1-f179.google.com) (209.85.166.179) by pb1.pair.com with SMTP; 26 Apr 2019 16:56:02 -0000 Received: by mail-it1-f179.google.com with SMTP id q14so6006992itk.0 for ; Fri, 26 Apr 2019 06:57:11 -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=AydIGA4YM96s7q/GJrdO4FQ5dwePJbm7aMbMiDWm/b4=; b=i+HTcvqo5S4Y13hP88CtzEQUUYcY8IMQbDi2HkX7i4fe54xaSUHaJVc+BPu0OFaBbC mkZ55+mZwTN8o8WAgZRFGT22DsI5ZWah29plQB/+pOs0Rn3SJbTQ6u9ifprg3VRq1BMT E5RwdvsJwk/qX2G+F6yxrpMA8a1IsqaIqHhwh3KJrBjAkxjb6pYqm6XknGGzgcZoVPAX 9VHIZWkAbB9tNVCHTDXE94avgcxQYLVMcpLSWodhyyphc29S3PO8t2fULkzpBeTH3J8c gPVhyNU6mZbSeTtRLmSJWVKlEH1txGgDLmtx7S/F5BQtr/P0fvrd9AEQlUaaoxU6kAnb FReg== 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=AydIGA4YM96s7q/GJrdO4FQ5dwePJbm7aMbMiDWm/b4=; b=XyNDhb9/6NZfgsk2GqynJ0DPg/DvHiFHL6GY6oAHUHi1ZwalpwZVk/JcLV3bRJBYFH 9Q4fJfnPDxtyqctfQZrVA3CoMj4jn7svf9Iy/dLCHtwVTZmHqtFQxWxOJvvgFs9RFbus L8VJEnl4tIxpJUx3r1TTSLhwSkD28XC6Gu26elD04UDu2UQKKOFfC2dL39t6iNbtRg13 YDFdiTDtY8tJmhFL4WkCokeNCMs2gySMs7klTQKAMePsVBRQxYYca1oIDhl764Sol/jq azJB7wY50UDymkXjzyVVpT8JlMqS5KgI6ONlZoPvfpswx79nC+Xg0sbYmlHcCLHaxTnR 69FA== X-Gm-Message-State: APjAAAVQ5T5tLTDt4xFUVdsKnEUTtyeQl4EDZazxoJqpAlImLgEc2Wv4 PqYi+tCWn/rq4mDcYybnW7D6+Wdl90s6ds1yzYeNdie9 X-Google-Smtp-Source: APXvYqzmhLkC0iaBPOFo7hDqdTxHMGy1HTiOyLnOSEY6TMI3rHZiiBbbPKAymC/ubBgmtQnSKIDG1f14gTzfRr77+dY= X-Received: by 2002:a24:4d8a:: with SMTP id l132mr8497207itb.70.1556287031304; Fri, 26 Apr 2019 06:57:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 26 Apr 2019 15:56:55 +0200 Message-ID: To: =?UTF-8?Q?Pedro_Magalh=C3=A3es?= Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000ab685605876f4fa3" Subject: Re: [PHP-DEV] Alternative approach to short tags deprecation From: nikita.ppv@gmail.com (Nikita Popov) --000000000000ab685605876f4fa3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2019 at 3:51 PM Pedro Magalh=C3=A3es wrot= e: > 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 t= he > user is relying on the default and when explicitly enabled. Although it m= ay > 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. > Yes, usage of