Re: [PATCH] string_offset access optimization

From: Date: Fri, 16 Jul 2010 08:07:19 +0000
Subject: Re: [PATCH] string_offset access optimization
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49088@lists.php.net to get a copy of this message
Hi Stas, On 07/16/2010 11:47 AM, Stas Malyshev wrote:
Hi!
$str = "abs"; var_dumo($str[1][0]); I think it's not a problem at all. "b" makes sense because "abs"[1] -> "b" and "b"[0] -> "b".
Totally makes sense, but it'd be a bit strange that $str[1][0] works but $str[1][0] = "a" does not.
$str[1][0] = "a"; doesn't have to modify $str. var_dump($str[1][1]) will return empty string $str[1][1] = "a"; can't modify $str at all. So I think it is not a problem. Thanks. Dmitry.

« previous php.internals (#49088) next »