Re: Resource to Object conversion

From: Date: Mon, 03 Aug 2020 15:09:22 +0000
Subject: Re: Resource to Object conversion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-111298@lists.php.net to get a copy of this message
On Mon, Aug 3, 2020 at 5:02 PM Sara Golemon <pollita@php.net> 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

« previous php.internals (#111298) next »