Bug #12274: parser/string access problems

From: Date: Fri, 20 Jul 2001 09:55:39 +0000
Subject: Bug #12274: parser/string access problems
Groups: php.dev 
Request: Send a blank email to php-dev+get-60362@lists.php.net to get a copy of this message
From: tegel@dubaron.com Operating system: NT4 PHP version: 4.0.4pl1 PHP Bug Type: Strings related Bug description: parser/string access problems Suppose a string $t: one can access(read) all single characters of $t by reading elements $t[0] .. $t[n] Setting $t[0] however fails, setting $t[1] .. $t[n] succeeds. Looks like when setting element [0] that $t gets converted to array type, and after setting $t[0] the values $t[1]..$t[n] are simply lost. why not this behaviour with other indexes as well, only with item[0] ? - that's not consistent. -- Edit bug report at: http://bugs.php.net/?id=12274&edit=1

« previous php.dev (#60362) next »