Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106553 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 791 invoked from network); 12 Aug 2019 11:01:28 -0000 Received: from unknown (HELO mail-wm1-f47.google.com) (209.85.128.47) by pb1.pair.com with SMTP; 12 Aug 2019 11:01:28 -0000 Received: by mail-wm1-f47.google.com with SMTP id u25so10965298wmc.4 for ; Mon, 12 Aug 2019 01:29:34 -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=aAuOIaj+oHUoA+kpDHLgBrbW9SiTAvXicA33wS6G1Ko=; b=dbiop/mYjueVKCb0A14LWUr3nARE7xFn3TWSVByScQhTTjkWGDi0CrUreBBJcU5BKL vdhg27f+R/hq1NCNGBBhcV1TMRpdYMUcmFaakUzibglejudisn19sDLtU363FHdt9lNl 8eRc9yY5PecnTxhFdcjLxvbJv1198MCvNKhBScCRHq2R2n96pdYd0pL3iuh2k7p5e4fh E7GnEyzn956SmBv5zZxj5ZOVZd5WFiOF8pbp3EJTmYWv6xA44QQkHOjmEZFpOTCGJEcb GDOx+mmx/d4VgbqEKjR7by6fP5GRNGCQvwVVfx2HF49xglhOs1Fimi8VYq34L0IUwG+w /CRg== 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=aAuOIaj+oHUoA+kpDHLgBrbW9SiTAvXicA33wS6G1Ko=; b=SLMtFmrXQZh8U9TQ5obvb9hitY+u0x3rhI/rnIVj6hYv33IlvrcYb2/ZgV5bomnVER LL2Jv2evh8sr4tG3XEga8ElY7dnhfvEYbSwRpgzRYsgjy4H/VRf1HSIkdMambsvvUegE 2N+H6XcB21MjXwEIqaCSEHewEfRexfkMTDgmloegDH3J1jmmiN0Kqqv9OdlP00AnohJD 0mzXSE57c9WG1UHEg5uH1bQNQuqVZtrdplGSpzm07jahVPaU8aKBjG+MPMBLVfHZzL53 t7toUsn1O5V/U9BfM/BBYUw1aG2xHhxq6SVBea15Lw9+kAlzDsYPzeaI1J0ck7VFprkM 3eJw== X-Gm-Message-State: APjAAAWQa60pUuM2viWcsCnOCIIx7Oy9hn9ThSHVT94ePHBkR687+I2W gmi7m2sMj2sp+5LawQ0SUYY/TNwtaDwrm9uMTifY9Q== X-Google-Smtp-Source: APXvYqwDbEfT1uCJ99N866l5Bc00R51gygHrRJJWiHUvwNIt726Ox76CFDFmib8msqXdvwK/KinV5/+WxdLLcP3sGTY= X-Received: by 2002:a7b:c187:: with SMTP id y7mr7321198wmi.155.1565598573988; Mon, 12 Aug 2019 01:29:33 -0700 (PDT) MIME-Version: 1.0 References: <000001d54e5a$02ac09f0$08041dd0$@roze.lv> <2b5588d6-d667-321f-22f1-46a22bb797c5@korulczyk.pl> <000001d54ea3$eb3480a0$c19d81e0$@roze.lv> <000301d54ead$b43e7b00$1cbb7100$@roze.lv> <59378662-77ca-0779-10cb-c25acf1b45ef@korulczyk.pl> In-Reply-To: <59378662-77ca-0779-10cb-c25acf1b45ef@korulczyk.pl> Date: Mon, 12 Aug 2019 01:29:21 -0700 Message-ID: To: Robert Korulczyk Cc: Reinis Rozitis , PHP internals list Content-Type: multipart/alternative; boundary="000000000000dd0f1b058fe75239" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecate PHP's short open tags, again From: kris.craig@gmail.com (Kris Craig) --000000000000dd0f1b058fe75239 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 9, 2019 at 6:25 AM Robert Korulczyk wrote: > > Disabling short tags now is done with "an explicit directive" (there has > to be a specific ini file with a specific setting 'short_open_tag = 0'). > > Isn't this the same "situation when you create a separate file with an > explicit directive"? > > No, it's not. `php.ini` is outside of project responsibility - as a > developer you don't really configure this in any way, your application does > not > have any explicit directive to disable/enable short open tags. You just > accidentally using feature that could lead to code leak. > In your example with `engine` directive you explicitly disable PHP engine > by creating dedicated file for that purpose - there is no way do to this by > accident and then does not notice it. > > > > If a coder (or IDE) has written ' unless tested the effect (a part of code not being parsed/executed) will be > > exactly the same if the feature suddenly disappeared (unless the > additional checks in the 'v2 RFC' which on the other hand would make the > engine a > > tiny bit slower but probably have to be implemented to avoid such > accidents). > > At least the this behavior will be consistent - you will not have cases > when code works fine on one environment and leak on another. > > > Regards, > Robert Korulczyk > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > So far, the RFC only has 55% support, which means it's not going to pass this time, anyway, unless there's a vote shift in the next 8 days. --000000000000dd0f1b058fe75239--