Re: Re: 64 bit string offsets
| From: | Matteo Beccati | Date: | Sat, 30 Aug 2014 11:53:33 +0000 |
| Subject: | Re: Re: 64 bit string offsets | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76966@lists.php.net to get a copy of this message | ||
On 29/08/2014 23:58, Anatol Belski wrote:
> On Fri, August 29, 2014 18:34, Xinchen Hui wrote:
>> if a string is bigger than 2^32... I think there must be a bug.... :)
>>
> Only for this case you mean, or generally? As we safe with memory_limit
> anyway.
Even though size_t allows "huge" strings, would it be so bad to throw an
error when one tries to create a string longer than 2^32 bytes,
regardless of memory_limit?
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/