Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115362 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 30309 invoked from network); 8 Jul 2021 03:58:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Jul 2021 03:58:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 60FA11804AA for ; Wed, 7 Jul 2021 21:20:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 7 Jul 2021 21:20:44 -0700 (PDT) Received: by mail-oi1-f181.google.com with SMTP id m3so6279056oig.10 for ; Wed, 07 Jul 2021 21:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CRp2SQPPMExYfK58+ei4A/B6kXeLXRcETl0zeAv41Ok=; b=rtjKZipbs8/oJriqAzS4pRWZPu7ADLX15OzZKAorVr+RJY+PbUOvrlIRD1WISyrtqw SrTZTXi0AXDdQR9578QqpeaZAmdfEgL2DxZcSlHy3PpA7XsOkfDImGuGoxq7z3PUzaX3 XAUfgDCrVzysNxmRO+vTlhXn32Ug3g6006yuCTSDB9LJOVuSt5p7P/tRhfNg2OilkWSa lyZX4IZKo+YEelIszw9IsvQGfJBmXaq43GJp8jQGxrRXOrixV/ZwUyh007sN/XEEZDeP mFJXoUOq38FcgZfWJ6v0/MsTeLfIJFcqsONJ2ABHPx+YnlwVelvqTCjJfqWkRNDpMHRW 4efQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CRp2SQPPMExYfK58+ei4A/B6kXeLXRcETl0zeAv41Ok=; b=gm6tv2FYEw8xJZCpvxxWUyidZYGrL8JFjo+wXU+4FvA1D/ES+Cnsqch7GHeFHbrHNR zM58BfxrY7FuMFPMhXSfAZXpgDhKCzih04qYwYE41zdF3vQpOLftDeYo74vJI+d1HZoo NdNt/mX7GvK6SMir/w9ADvRZSb/4NDQTCcVJjV9zRjqozYI8ILNbXri6/bgBS7JHTMXb U/5mV3iDhxbEKjwNLDvmDTwatFLiy6UQruNLMxvnqFgg4M3rV4r6A+5fSWqqAH8VLp5n cDCmh/kuhJZgMaRSboo355aHn6rvLEkhrRdKlRNHKNDjFnEs8nyNlvJSExxhqysvKWp3 Mi8w== X-Gm-Message-State: AOAM532DMd+7g2/iCgD4NfChB3/i3ARJ6EsXd5GzGjzz7LsglXyxJmLP W8PtHwmgOHNQLJpj4V4SayN53TuD7aW5J53FzRA= X-Google-Smtp-Source: ABdhPJwaxzd1Ox9bX+XG1SUtSqarw+Y6uKIUA6fze03ikWsDANj3awnVW3doWSxG/eS6r1vmT7NujkhOTu+ngHjPY18= X-Received: by 2002:aca:6007:: with SMTP id u7mr2128504oib.165.1625718041058; Wed, 07 Jul 2021 21:20:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6839:16cd:0:0:0:0 with HTTP; Wed, 7 Jul 2021 21:20:40 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Jul 2021 06:20:40 +0200 Message-ID: To: "G. P. B." Cc: Dmitry Stogov , PHP Internals , Nikita Popov , Alexandr Lisachenko Content-Type: multipart/alternative; boundary="00000000000057a03105c694fadd" Subject: Re: [PHP-DEV] FFI Type Reflection API From: krakjoe@gmail.com (Joe Watkins) --00000000000057a03105c694fadd Content-Type: text/plain; charset="UTF-8" Hi Dmitry, It doesn't make sense to wait another year for this, and since it's self contained it's fine to merge into 8.1 when ready. Cheers Joe On Wednesday, 7 July 2021, G. P. B. wrote: > On Wed, 7 Jul 2021 at 10:31, Dmitry Stogov wrote: > > > Hi, > > > > Last week, at a PHP conference, we discussed some missing parts of > ext/ffi > > with one of the most extrimal FFI user - Alexandr Lisachenko. One of the > > things he is missing is a FFI Type Reflection API. Actually, this is a > > simple and self-contained feature, that implementation took me a couple > of > > hours. > > > > https://github.com/php/php-src/pull/7217 > > > > This doesn't touch any existing code in ext/ffi, just add the API that is > > better visible through stub: > > > > https://github.com/php/php-src/pull/7217/files#diff- > 3651c407d02a2a152d9aba6e484f6ae7f4c2c85fa2992274d76c0e18364c7e6fL75-R96 > > > > Unfortunately, PHP-8.1 is closed for new RFC, so we can merge this as a > > self-contained feature, or wait for the next version. I ask to merge this > > into PHP-8.1, but won't do this, in case of any objections. > > > > Thanks. Dmitry. > > > > Ideally the array/struct/function CTypes would be subclasses, > but if due to time constraints going down this route is impossible, > it is still better to have this information available then not at all. > > So +0.5 on principle (seeing that there already is a naming bikeshed I'm > not going to chime in on this aspect). > > Best regards, > > George P. Banyard > --00000000000057a03105c694fadd--