Re: What to do with opaque GMP objects which allows instantiation

From: Date: Fri, 30 Dec 2022 23:50:44 +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-119220@lists.php.net to get a copy of this message
Why isn't that generating an ArgumentCountError? On Fri, Dec 30, 2022, 21:36 Tim Düsterhus <tim@bastelstu.be> 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. > > Best regards > Tim Düsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >

« previous php.internals (#119220) next »