PHP 4.0 Bug #3281: Array handling returns "Array" or does something stupid when keys are strings

From: Date: Sat, 22 Jan 2000 18:47:59 +0000
Subject: PHP 4.0 Bug #3281: Array handling returns "Array" or does something stupid when keys are strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-14839@lists.php.net to get a copy of this message
From: johnston@itactics.com Operating system: Linux PHP version: 4.0 Latest CVS (22/01/2000) PHP Bug Type: Scripting Engine problem Bug description: Array handling returns "Array" or does something stupid when keys are strings <?php $a[b]['a c'] = "lala"; echo "$a[b]['a c']"; ?> returns "Array" <?php $z['hello baby'] = "yo"; $z['bubye baby'] = "bah"; array_keys($z); ?> doesnt even return anything. I'm trying to write a script that parses out a mail header into $message[header][headername] = "value"; and headername might be a few words or might have some weird chars in it and php's buggy arrays are causing me grief - lots of grief. It wouldnt even matter if i removed all weird characters.

« previous php.dev (#14839) next »