I'm drowning in PHP

Andy Armstrong andy at hexten.net
Tue May 15 12:14:34 BST 2007

On 15 May 2007, at 11:33, Peter Corlett wrote:
> On Tue, May 15, 2007 at 11:20:15AM +0100, Andy Armstrong wrote:
> [...]
>> I imagine PHP stores the length of the string rather than using a  
>> sentinel
>> at the end. At least I really *hope* PHP stores the length...
> Given the quality of typical PHP code, I expect it stores the  
> length at the
> end of the string.

That'd be fun! Scan forward until you get a value that matches how  
far you've come. The worst of both worlds /and/ subtle bugs when the  
content of the string happens to look like a plausible length. It's a  

Andy Armstrong, hexten.net

More information about the london.pm mailing list