Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101365 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76910 invoked from network); 18 Dec 2017 20:38:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2017 20:38:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wm0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:32848] helo=mail-wm0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/48-21958-737283A5 for ; Mon, 18 Dec 2017 15:38:16 -0500 Received: by mail-wm0-f41.google.com with SMTP id g130so8950305wme.0 for ; Mon, 18 Dec 2017 12:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vEWZWzyF8gEe/7O8srEfo/p0nsmYyp0owZ6jN43mLHY=; b=fZPh2YM5WajljOHAqRySqI3IRdqNsRv08pH+U7EEP4Edvws0H2bH0NSo4rPlFp7pmY qOjdYry5JPqRmIO2YHjP7G/KvVh//uQclIMD+R1rW3H5uPnL+I7JJEDb9O9GlviPvCTY lmiA/+61xlZz2BsN1A/DMnYmYlgih5rl8+cCqEBJ3jTMN2wDdovrontYTjV9yMtfaIZQ jlK/KoHRLHXKBJiWoearKKGB0W6kCsJwHaPnBpIjaSRHAVgm72c9eLeG3uMk6TC/N71u lVmFcmdp/YrUmTPTTgZoZgEJ5H0CZ5vgfXJMA5xZ/Sunfv2QWulRuxfIf5OiDVhgymEA UsbQ== 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=vEWZWzyF8gEe/7O8srEfo/p0nsmYyp0owZ6jN43mLHY=; b=iLDEjzyYrY27q+p19RumBhlYbZ0gpl2bkxYXIxAXGJJG4rWpWbZwfP2CP0cKPtw5dF 8MJ20cf6Vpza6EyCT9bqfvKsBjQeotCrgcqKazET4xUC+UNRqrBggEZl0cMy4NeFbhov JU5XRg5w8bckTt7NdDf9rRy/0Ugt3YqSPAC3iyCxTKAEls9nnEaCxByEQnCBa+JmqYYI Oygfr9DyARy7XeUsI/bztyWcxt+8/F98Zzw3uu3BjgfW3LWxekwhGCItwDJle8AvIkFc S2HkLnMz8vHTJlRu5fsbEy0XBhnrWNEnQj5z/qPKLCnH/yxBORF2Vn4Zds2sfpTvON/H EKcA== X-Gm-Message-State: AKGB3mJJTj+BCcFmWWkAkDjbmJa2CQe6tjVtuM0IO6ESvtAWO9PqTLlm xM1xxC1C0Bf9ING8tMRTxNfZmT5/UYDuzZPfCc8= X-Google-Smtp-Source: ACJfBos+8mcEmB2g9820XisUWIkST6sC/UxN5YttKTbBTj4ErYz/7ng8lYlweqnTfsgjWyndH8o7IuEwSTsj8QE9RlY= X-Received: by 10.28.11.6 with SMTP id 6mr426679wml.135.1513629492943; Mon, 18 Dec 2017 12:38:12 -0800 (PST) MIME-Version: 1.0 Sender: morrison.levi@gmail.com Received: by 10.28.21.68 with HTTP; Mon, 18 Dec 2017 12:38:12 -0800 (PST) In-Reply-To: References: Date: Mon, 18 Dec 2017 13:38:12 -0700 X-Google-Sender-Auth: 97ufGvGgdZanFG_OrcSQcGt6HQk Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] C++ and FAST_ZPP macros From: levim@php.net (Levi Morrison) On Mon, Dec 18, 2017 at 12:43 PM, Sara Golemon wrote: > This blog post came across my twitter today and it's certainly legit. > https://cismon.net/2017/12/18/Fast-ZPP-s-Incompatibility-with-CPP/ > > I tossed together this quick and dirty fix (and tested it with a > simple C++ extension), but I wanted to get a read on what branch folks > think it should be applied to. > https://github.com/sgolemon/php-src/commit/469ddd26331dbd736ad13eaac7170ccc43d09c7f > > 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. > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php 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".