Re: svn: /phpdoc/en/trunk/language/types/ string.xml
| From: | Nikita Popov | Date: | Fri, 30 Mar 2012 20:25:23 +0000 |
| Subject: | Re: svn: /phpdoc/en/trunk/language/types/ string.xml | ||
| References: | 1 2 3 4 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-9981@lists.php.net to get a copy of this message | ||
On Fri, Mar 30, 2012 at 10:02 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
>> I think that Yasuo got it from this bug report:
>> https://bugs.php.net/bug.php?id=61549
>>
>> I think he's right that there is a 2GB limit for strings due to the
>> use of "int" to store the length (on LLP64 machines, i.e. Windows, but
>> not Linux). But not sure on that. I'd just remove that paragraph, it
>> doesn't really help anyone :)
> It's better document how large it can be, isn't it?
>
> zvalue structure uses signed int for string length and it cannot
> beyond the limit.
>
> http://wiki.wireshark.org/Development/Win64
>
> Most of systems use LP64 or LLP64, but there is ILP64 model also.
> It might be good that we mention it, if we are supporting ILP64.
I'm not sure what was going on in my head when I was writing that, I
definitely mixed something up. For some reason I thought that int
would only be 32 bit on LLP64, which is obviously wrong. So you are
right that it will be 32bit on pretty much all machines.
Nikita