Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81507 invoked from network); 18 Dec 2017 21:11:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2017 21:11:42 -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.216.196 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.216.196 mail-qt0-f196.google.com Received: from [209.85.216.196] ([209.85.216.196:40330] helo=mail-qt0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/19-21958-C0F283A5 for ; Mon, 18 Dec 2017 16:11:41 -0500 Received: by mail-qt0-f196.google.com with SMTP id u42so21771164qte.7 for ; Mon, 18 Dec 2017 13:11:40 -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=h6+dXMEFvDj3MQIqUsXyDU4nNwDxftEVL34nwSugfiY=; b=YzV1sjN26n3+2HV4B/ebI0+66ekQRmotr2EPyLQQzJE7QQzz9LydwRhVAMT3raWC9B /d3RB6+iWVuQ2k5tOwspdwK8fcX9//PRwRcOlQtifQv+qFgwrzp5GJdoZfsfObrBRo1L OjBbONA6XP68AZ4BcbzMNOQum41QX1gD6o1Rr2cZEmP8/EB3biovoULukgkfUcc34boC rDXIpbXtvBlwi83pbgCbUf/T/vW4aPcJGKLYVXuW4Q5GKMJxIgMExlZ3pSZhIClOG5+a kIqTahf+PlHHSvVC0f/J5OMZ7fF4t984xeemKE7K9QAOJC0oBU2hvzSCQdyJb0gG1n8b NhpA== 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=h6+dXMEFvDj3MQIqUsXyDU4nNwDxftEVL34nwSugfiY=; b=Bh5UtnKwO9XMdj3jm6gEzDdjE2B3wkAzFKvE9zL7y8zAmY/Uwr00jIq0u9AKVP4Qla kdCQdoGPHeA2N20nfie3bMqICTMvdeV5oHPjXnYoPIjkT0BgKNch+qcy8FKaPMaV6sV/ 2oF8EOdk1C6CSQbjvA5ln739eZzN8XsdNSsTGuFdFtEr+6FZtNeUCVcbVoULlinl8BPX t0MJMeZsyPMk+yz5XowOifhag9rNH3PY7C5PZZX2/slV3h3AeCGJvm0duc0HCEPd3upc sNSgtB/PAhwgyZ7mMioK58ZyrWePP0ogJz9gnBg3Kwl1imsEUbQoUjso58hd+04y71je GfEA== X-Gm-Message-State: AKGB3mKM52zNjvNA8pwJVwQv4veuEDFYaaoS/4ytyDX5zbZ8rEU/tptc ADDManPjEU/n0VFTRfWb9pzA9AFp75cP447vpl8Fi522 X-Google-Smtp-Source: ACJfBovT0gPsH9Y61qY9UU70xxb31mMxLBWZsYg3Tv692hm2wLuE9J/Rp4ZgIN9IegnpI7BPwWqqA7ltCeBrVOA/ETE= X-Received: by 10.237.58.167 with SMTP id o36mr1724863qte.333.1513631498139; Mon, 18 Dec 2017 13:11:38 -0800 (PST) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.158.145 with HTTP; Mon, 18 Dec 2017 13:11:37 -0800 (PST) X-Originating-IP: [206.252.215.26] In-Reply-To: References: Date: Mon, 18 Dec 2017 16:11:37 -0500 X-Google-Sender-Auth: V9lYRRGMzSjoSqjUkuxqozNCgKo Message-ID: To: Levi Morrison 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 Mon, Dec 18, 2017 at 3:38 PM, Levi Morrison wrote: >> Thoughts? If I don't hear anything in a week, I'll just apply to 7.1 >> and merge up. >> > Is our macro `#define Z_EXPECTED_TYPE_STR(id, str) str,` ever used? If > so there might be a change in perceived behavior because the first > entry previously had "integer" and now it is "mixed". > It exists for the purpose of generating output message when the type is not cast/coercible to the expected type. The index of the string entry corresponds 1:1 with the value of the enum, so it'll only show "mixed" when the expect type was ANY and we failed to cast/coerce to ANY (which will obviously never happen). In fact, the previous state where _expected_type was initialized to IS_UNDEF (and by extension interpreted poorly as Z_EXPECTED_LONG) would also never happen because the cast/coersion error is only produced by P_PARAM_*() macros who have in turn explicitly reset _expected_type to some specific value. The default initialization exists only to silence unhelpful compiler warnings and not to provide any actual use or effect. -Sara