Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101395 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63206 invoked from network); 19 Dec 2017 21:05:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2017 21:05:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:40339] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/27-10479-90F793A5 for ; Tue, 19 Dec 2017 16:05:14 -0500 Received: by mail-qk0-f176.google.com with SMTP id q14so11490200qke.7 for ; Tue, 19 Dec 2017 13:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VYH9GndHFSWwFijNCccC8y/swq/GC9VM1P6iSRZHbdg=; b=fMG417DDM8Q1yAvjQIPOpME3NUiWcyD45sRpPKKxyrzmNzBXUgkX7+Er+gx2LPjBq+ sld/99CHghZNdVJ67UzT9ZOfpUXDnAcsYOZSgAgH1jVUsHU8BDW5qJHVhKisT0ur/qoR 99VmnmAk7mQ6B3vjlvebnYtMvz09euk2oMy6N7gssV0EVB3hMVj7D6joQ9tN8Z8Y5p2F 9pIsMs+was14jcAXr17iZpmeZQ3mSeU1QJ/wQf0CxSc9PMt9C68OelYVawH/y1BK5Jaa b6MYngQSot5RyhLvO09WA8rVfBHiM++/P+jKP58G+5a8BHI6glVgpOQSQD0XDZ0bPeIQ YcKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VYH9GndHFSWwFijNCccC8y/swq/GC9VM1P6iSRZHbdg=; b=UjfDGO1FhLJvJ1OGw+syRC32YzJJB7FzvNqxrj3zAibyYRjM5n6MaO67+NBLnr0O1k +0mMEtltf4iXUu6qdrWj15k+56iXvhglseMrZmcLm4/flF88qyXSDDgygGpIfPziyiZt r6ZCqd5MPuFjEoSezB67G+zpCI9Mw2QxvNE/AMMExdcrFber95iS4bjWXW71bgx8rZWy rgWdp7LLEkqXxawO4ph0rMO5WMCfZzT8wSzgKhZ/1yUwiyrlbOCcivoKVSzn3j5fLDhL RwVW6NaUOuuSfjNpesudy7t9omUlsFzeDZQpwv8zISvjvnfSsGYTXpY4EreOxNf8FM/A RMtA== X-Gm-Message-State: AKGB3mLPkJFYvDYCEc2jrkUN21ieqerMzls2wkyA6rhKXYklQvNjxHGM JMo9GELMl3lb0kD6ioMsjyzsnVRFTvkdJ9+Zj73LABkq X-Google-Smtp-Source: ACJfBotubyLMNX4Y6fRhGzGo4iVbujAqnBSdzw9Xs8APuYOHTfVbBQE0sqfZpCGhgSa1TsQSAxPJDz8ix1syAGE9LTI= X-Received: by 10.55.201.144 with SMTP id m16mr4447991qkl.43.1513717511228; Tue, 19 Dec 2017 13:05:11 -0800 (PST) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.158.145 with HTTP; Tue, 19 Dec 2017 13:05:10 -0800 (PST) X-Originating-IP: [206.252.215.26] In-Reply-To: References: Date: Tue, 19 Dec 2017 16:05:10 -0500 X-Google-Sender-Auth: jCu2kDSsI2WVBms-ZxuFqE6d87w Message-ID: To: Anatol Belski Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] C++ and FAST_ZPP macros From: pollita@php.net (Sara Golemon) On Tue, Dec 19, 2017 at 3:29 PM, Anatol Belski wrote: >> As the blog post notes, it's a simple matter to work around the bug in extension >> code (indeed, an extension can simply opt to not use FAST_ZPP). On the other >> hand, the fix is pretty basic, and existing functionality of the default expected >> type effectively being Z_EXPECTED_LONG (because both have a value of zero) is >> just a bit.... >> weird. >> >> Thoughts? If I don't hear anything in a week, I'll just apply to 7.1 and merge up. >> > C++11 requires a validity scope for enums, thus this change is unavoidable. > IMO your second suggestion were safer in the spirit of BC - Z_EXPECTED_LONG > instead of IS_UNDEF by default, and a new in master. Just because a workaround > is possible and otherwise the issue is not critical. > Yeah, the more I think about it, the more I realize that's the more prudent approach given the non-critical nature of this. Could you clarify as 7.0 RM if you want this on your branch? AIUI we're in security-only for 7.0 now, yes? -Sara