Re: [RFC] [Vote] Resource to object conversion

From: Date: Tue, 09 Jan 2024 08:08:08 +0000
Subject: Re: [RFC] [Vote] Resource to object conversion
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-122139@lists.php.net to get a copy of this message
Hi Kamil, Good question... After the workaround, I think there's less reason to do the conversion in the next major version indeed. To be honest, I am not able to recall any use-case where a real BC break could happen. I mean, there is a very tiny one where resources can be casted to integers, while objects by default cannot be, but this problem is also easily solvable (and Nikita had to do it for CurlHandle in the past), so I don't have any other idea. In my opinion, the main argument for converting stream resources to objects in a major version is the "marketing value" of this achievement and possibly the unintended side-effects/edge cases which we don't yet foresee. Regards, Máté

« previous php.internals (#122139) next »