Bug #18090 Updated: Associative arrays are broken using constant keys

From: Date: Mon, 01 Jul 2002 14:54:26 +0000
Subject: Bug #18090 Updated: Associative arrays are broken using constant keys
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7425@lists.php.net to get a copy of this message
ID: 18090 Updated by: derick@php.net Reported By: mike@blueroot.net Status: Open -Bug Type: Arrays related +Bug Type: PEAR related Operating System: Win32 PHP Version: 4.2.1 Previous Comments: ------------------------------------------------------------------------ [2002-07-01 10:49:26] mike@blueroot.net 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 this bug report at http://bugs.php.net/?id=18090&edit=1

« previous php.pear.dev (#7425) next »