Re: [VOTE] [RFC] 64 bit platform improvements for string length and integer

From: Date: Mon, 19 May 2014 14:03:49 +0000
Subject: Re: [VOTE] [RFC] 64 bit platform improvements for string length and integer
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-74363@lists.php.net to get a copy of this message
size_t is unsigned.

what do you mean by "other lengths"? (in phpng most data structures use
zend_string instead of char*/length, so we need to change it in one place).

May be some other places need to be changed as well, but I don't know about
them. If you talk about stream related structures, it must not make any
problems, because in run-time we will have just few such structures.

Thanks. Dmitry.


On Mon, May 19, 2014 at 5:57 PM, Andrea Faulds <ajf@ajf.me> wrote:

>
> On 19 May 2014, at 14:31, Dmitry Stogov <dmitry@zend.com> wrote:
>
> > We agreed to make 64-bit IS_LONG and 64-bit string length on all 64-bit
> > systems, but don't change other core data structures (as Nikita
> suggested).
>
> Does this mean we’re not switching to unsigned ints for other lengths?
> 64-bit or no, we ought to do that.
>
> --
> Andrea Faulds
> http://ajf.me/
>
>
>
>
>


Thread (87 messages)

« previous php.internals (#74363) next »