Re: What to do with opaque GMP objects which allows instantiation
| From: | Larry Garfield | Date: | Sun, 01 Jan 2023 18:20:02 +0000 |
| Subject: | Re: What to do with opaque GMP objects which allows instantiation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119222@lists.php.net to get a copy of this message | ||
On Fri, Dec 30, 2022, at 2:36 PM, Tim Düsterhus wrote:
> Hi
>
> On 12/30/22 18:36, G. P. B. wrote:
>> - Add a proper constructor that does the same as gmp_init() in master/8.2.1
>
> My preference would be this (without any target branch preference):
>
> If there is no technical reason to disallow creating new GMP objects via
> 'new', then I believe that making those objects behave more like
> "regular" / "userland" objects is a good thing.
I concur. If I'm supposed to use it as an object, let me use it as an object.
I defer to the relevant release managers as to what versions it should be fixed in, but I agree this
is the right fix.
--Larry Garfield