Re: svn: /phpdoc/en/trunk/language/types/ string.xml

From: Date: Fri, 30 Mar 2012 20:02:01 +0000
Subject: Re: svn: /phpdoc/en/trunk/language/types/ string.xml
References: 1 2 3  Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9980@lists.php.net to get a copy of this message
2012/3/30 Nikita Popov <nikita.ppv@googlemail.com>: > On Fri, Mar 30, 2012 at 2:54 PM, Hannes Magnusson > <hannes.magnusson@gmail.com> wrote: >> On Fri, Mar 30, 2012 at 12:26, Yasuo Ohgaki <yohgaki@php.net> wrote: >>> yohgaki                                  Fri, 30 Mar 2012 10:26:14 >>> +0000 >>> >>> Revision: >>> http://svn.php.net/viewvc?view=revision&revision=324628 >>> >>> Log: >>> fix incorrect description >>> >>> Changed paths: >>>    U   phpdoc/en/trunk/language/types/string.xml >>> >>> Modified: phpdoc/en/trunk/language/types/string.xml >>> =================================================================== >>> --- phpdoc/en/trunk/language/types/string.xml   2012-03-30 09:58:08 UTC (rev 324627) >>> +++ phpdoc/en/trunk/language/types/string.xml   2012-03-30 10:26:14 UTC (rev 324628) >>> @@ -14,9 +14,7 @@ >>> >>>  <note> >>>   <simpara> >>> -   It is no problem for a <type>string</type> to become very large. PHP >>> imposes >>> -   no boundary on the size of a <type>string</type>; the only limit is >>> the >>> -   available memory of the computer on which PHP is running. >>> +   <type>string</type> can be as large as 2GB. >> >> What? >> Thats not even remotely true. What gave you that idea? > 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. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.doc.cvs (#9980) next »