Bug #18090: Associative arrays are broken using constant keys

From: Date: Mon, 01 Jul 2002 14:49:26 +0000
Subject: Bug #18090: Associative arrays are broken using constant keys
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12658@lists.php.net to get a copy of this message
From: mike@blueroot.net Operating system: Win32 PHP version: 4.2.1 PHP Bug Type: Arrays related Bug description: Associative arrays are broken using constant keys The following code shows the error print_r(array( LOG_EMERG => 'emergency', LOG_ALERT => 'alert', LOG_CRIT => 'critical', LOG_ERR => 'error', LOG_WARNING => 'warning', LOG_NOTICE => 'notice', LOG_INFO => 'info', LOG_DEBUG => 'debug' )); outputs Array ( [1] => critical [4] => error [5] => warning [6] => debug ) seems to work on *nix The array above is used in PEAR::Log -- Edit bug report at http://bugs.php.net/?id=18090&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18090&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18090&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18090&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18090&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18090&r=support Expected behavior: http://bugs.php.net/fix.php?id=18090&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18090&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18090&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18090&r=globals

« previous php.bugs (#12658) next »