Re: [RFC] Big Integer Support

From: Date: Thu, 15 Jan 2015 11:21:14 +0000
Subject: Re: [RFC] Big Integer Support
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Dmitry,

> On 15 Jan 2015, at 11:11, Dmitry Stogov <[email protected]> wrote:
> 
> BTW: why not to wrap big integers into special IS_OBJECT?
> It would keep everything working out of the box (without BIGINT), and would allow to eliminate
> more than half of unnecessary changes.
> 
> In the past we made similar decision for closures.

In retrospect that might have been a good idea. Though objects can't quite do everything our
primitive types can. To get bigints to work that way, you'd need to improve the support for
objects a lot. You'd still need to update virtually every zval-accepting extension. The
signature of is_numeric_string_ex would still have to change. You would need to make constants
support objects, too. You'd still need to change a lot of things, unfortunately.

At this stage, switching to using objects is probably a waste of time.

Thanks.

--
Andrea Faulds
http://ajf.me/

> 
> Thanks. Dmitry.
> 
>> On Thu, Jan 15, 2015 at 2:01 PM, Andrea Faulds <[email protected]> wrote:
>> Hey Dmitry,
>> 
>>> On 15 Jan 2015, at 07:56, Dmitry Stogov <[email protected]> wrote:
>>> 
>>> ext/session and ext/json are required by most apps.
>>> Actually I stopped attempts to build it when I saw compilation errors in ext/session.
>>> 
>>> Thanks. Dmitry.
>> 


Thread (70 messages)

« previous php.internals (#80530) next »