Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97029 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85032 invoked from network); 19 Nov 2016 11:32:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2016 11:32:08 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.176 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.176 mail-yw0-f176.google.com Received: from [209.85.161.176] ([209.85.161.176:33480] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/61-12687-63830385 for ; Sat, 19 Nov 2016 06:32:06 -0500 Received: by mail-yw0-f176.google.com with SMTP id r204so180303801ywb.0 for ; Sat, 19 Nov 2016 03:32:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BhFfhLP9uEbj7FJr+w1Lfy/G21GOzd0flJD5rjz8mxo=; b=z1yoxWjw2PbLj1SxbYvqDj9Xm1VfzInkTtZ3wxFfbLQQzQGYamTVFZ4yOc9MCNBDGT GEr6xyEthSAP89usCg7l3bDZQvJtXG0onQHHTtIvo1xBnQ/pRrM6bZpQxZjOcHu0p9Yd gdhnPa3NtPrvTbE73hinFAe9Vg+r0PWbJteacRX9iMsHpCTDQX2wShhr+5hoe29N4P7R 4sP5xPo2x7QMb+EXk5MQG7zlIzvBlQ56IXZr2gIqXSMXtoV1QzYbqZQArhslK5BOMCaB mcKRofqENXpkBGi3iByjX2D8Q20zUp8hC5AcLwTbb1XeVslVsxWxr+zDvVkHCQjaPXIH TsaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BhFfhLP9uEbj7FJr+w1Lfy/G21GOzd0flJD5rjz8mxo=; b=kmhKZiWdxZeyLVRkPISzpMC4bcFP65TDrW9i1+Gk6TUqoPbC7jNY2b65LiuuJnGDEi gPQsQQXrzylaRjO5hblf9zFy5YEJT3gAjFNXMt1egSId+hlNO03SnAd+DWli4irTMR5m pcgC13eJRHRM1aGocgXt1nVA8/goE4PZ+iLCezdTubVePqghXB9cOO+Do9xww/mVFwd3 3wssvM2MRtYWoya0ofMw585v1v5BZ5vqJr4kuHbgoZaRgcaILkZ0XPXKwEGYksUv1fVj 2lfyZb/U1+m+BDfYyj6gnSNZO4+pv/ZfxVnsgAykc9WuMmHBh0VtPParIR7XT74HR7j5 o2hA== X-Gm-Message-State: AKaTC03Fy9gmz4OUzRJpS/VtzuIRzxnKE5fJF+yF7E58GLF5F61SWNnme2Tnvb2Lcq7INlSs+Bkdugp1tmpsDA== X-Received: by 10.129.79.207 with SMTP id d198mr3987405ywb.64.1479555123930; Sat, 19 Nov 2016 03:32:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.83.67.21 with HTTP; Sat, 19 Nov 2016 03:32:03 -0800 (PST) In-Reply-To: <91afb2a4-9022-2ffc-386a-4ad5f1e49149@gmx.de> References: <91afb2a4-9022-2ffc-386a-4ad5f1e49149@gmx.de> Date: Sat, 19 Nov 2016 12:32:03 +0100 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary=001a114da150966a560541a5c591 Subject: Re: [RFC] Deprecations for PHP 7.2 From: nikita.ppv@gmail.com (Nikita Popov) --001a114da150966a560541a5c591 Content-Type: text/plain; charset=UTF-8 On Fri, Nov 18, 2016 at 6:45 PM, Christoph M. Becker wrote: > On 18.11.2016 at 15:55, Nikita Popov wrote: > > Hi internals! > > > > I've submitted this RFC for PHP 7.1 previously, but didn't follow through > > due to time constraints. Now I'd like to propose an extended version for > > PHP 7.2 and vote on it sooner rather than later to avoid a repeat > > performance. > > > > https://wiki.php.net/rfc/deprecations_php_7_2 > > > > The RFC combines a number of deprecation and removal proposals. Each one > > will get a separate 2/3 majority vote. The RFC overlaps with some > recently > > discussed topics (each, binary strings) -- I'm fine with dropping these > if > > someone has a more specific RFC. > > > > I expect some of these are no-brainers, while others are more > controversial > > -- please share your specific concerns. > > Thanks, Nikita! I'm generally in favor of such clean up. > > The only exception would be features which have only been available as > of PHP 7, currently only assertion expressions. Deprecating assertion > strings as of PHP 7.2 would make it hard to provide PHP 5.6 and PHP 7.2 > compatible code, even though 7.2 GA is supposed to be released in > December 2017, whereas there'll be security support for 5.6 until end of > 2018[1]. > > [1] > This is a reasonable concern. My opinion on assert() and PHP 5 vs PHP 7 is basically this: You can use assert() the same way in PHP 5 as you do in PHP 7. Assertion expressions *are* supported in PHP 5. The only difference is that it's not zero-cost and error reporting is slightly worse. And well, PHP 5 being slower than PHP 7 is kinda the case whether you use assertions or not. If you use PHP 5, performance is clearly your primary concern. Thanks, Nikita --001a114da150966a560541a5c591--