On Tue, May 6, 2014 at 10:07 AM, Stas Malyshev <[email protected]> wrote:
> Hi!
>
>> It is hardly imaginable to release php 6 with strings length still
>> using integer. The memory consumption has been shown to be minimal
>
> Why btw it would be unimaginable? I.e., how many PHP apps really need to
> load strings of 2g+ size? I'm not advocating for not doing this, just
> curious why it is that big of a deal.
Because it is really a bad way to support 64bit architecture. Many
compilers, analyzer or related tools can do a much better job when
modern and clean typing are used, let alone the safe typing (no, using
int for buffer length is not safe nor clean :).
In the last thread about this topic we posted many external links to
documentation or tutorials explaining in details why size_t and co
should be used. If you are interested to go deeper in this topic,
--
Pierre
@pierrejoye | http://www.libgd.org