Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111298 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64606 invoked from network); 3 Aug 2020 16:12:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Aug 2020 16:12:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 74FCD180511 for ; Mon, 3 Aug 2020 08:09:40 -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-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 ; Mon, 3 Aug 2020 08:09:39 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id x24so3324763lfe.11 for ; Mon, 03 Aug 2020 08:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oc8ge691qrnbjqntNoyGbRFG+PjtourEVCYvcr/2Nyo=; b=pb+x5DVLVqcCga+Jb82rxhfwVAn9NIJ6U6n5SNjFIcpCPeA3ZqC/7rHJ+F0AQe/+6k JMOlmhQKIoQIVtDiegOuAzbilmfgBVe5ZxjJpOkg764v79i5cG36UG2f2avNu6gikPQJ n+0NVCJh7crlD93sbPrCEM9X0B/BloajOsXp7/LQwSF5Ojl6iSt9yw0hrcXu2OlEKSSx pPq9Y6JQEw8v0vkVgbPtalM45YYiY7r9ljL1Brlmhmnt87afDJxesATuYKZladJj13QS 2eWidvKLle1ApSQflW2aSqhKrj9Z97YCzKHQQUVBsvI8weF9WTzfg84dm4js3aC6vBw2 M23Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oc8ge691qrnbjqntNoyGbRFG+PjtourEVCYvcr/2Nyo=; b=uhWY8jqA2yZo45p42k2bCTTxO2X6PxTmpD35U4WiHo+U6ZV4xCbE89Je1p312MlXM0 D9Zw+mtGEJGkHbqjx9J4TFX+6smct0FQ9bczeWStQLspUf+VkkCTP2BjiB8GLA98TpQY +cqZQMAWBEoieOf9qVZF91Ml0uVQnlU+uyHKHSLjXLMeusX6rZg8ncM/FKrrzjGFly2F uTXfZqoT+1ntIggvVYgE4OQW3KQtH0dsWU3nCH5QnVgiGhgpuoNpdBwhyRqyp6DtXckQ 2tC5Y6mdCYmSNCDvtoK1p7rIvkWcs898ggVSi89PFb2LjAAitLXWHWt53rTYYJlI39tT OYEg== X-Gm-Message-State: AOAM530ICVMc5H9Bzyj4DMriwCmPhR3oBo3o250D9C5HOaHVbajtv0dH H0bFV3GHaOyHUor1eu/czvJBybqXQc1OeGFbW3c= X-Google-Smtp-Source: ABdhPJy2ZrAuzP2xfgwPBBW48wZ4jPnJSs8Vw2puX+MBNI9a+JumD3cEvoUsMCQiRFDn4biQGVKg+I2VaWE3A94t5CQ= X-Received: by 2002:a19:24c2:: with SMTP id k185mr8593182lfk.120.1596467378138; Mon, 03 Aug 2020 08:09:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 3 Aug 2020 17:09:22 +0200 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f831a905abfa86c9" Subject: Re: [PHP-DEV] Resource to Object conversion From: nikita.ppv@gmail.com (Nikita Popov) --000000000000f831a905abfa86c9 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 3, 2020 at 5:02 PM Sara Golemon wrote: > I just learned about https://github.com/php/php-tasks/issues/6 > > Is it the case that we've agreed as a whole to simply make these > conversions (as quiet under-the-hood, should only break is_resource() type > of changes) without need for individual RFCs? Or is a perfunctory RFC and > vote called for on each conversion? > Right, these conversions to "opaque" objects are primarily internal representation changes that do not affect the API of the extension, modulo is_resource() checks. In the future, we may wish to add proper object-oriented APIs to these objects (they are currently maximally locked down to allow future extension). Those API additions should go through the RFC process (or at least mailing list discussions) as they tend to be more nuanced than dumb resource->object conversions. Nikita --000000000000f831a905abfa86c9--