From: [EMAIL PROTECTED] Operating system: w2k, linux PHP version: 4.2.3 PHP Bug Type: Arrays related Bug description: after $var =pack(...) with 'N' flag, if use $var in $tmp[$var]='v' key is empty
just see code <? error_reporting(E_ALL); $aa = pack("N",127); $bb = pack("N",65); $cc = pack("N",121344231); echo "$aa\n"; echo "$bb\n"; echo "$cc\n"; $tmp=array(); $tmp[$aa] = "aa"; $tmp[$bb] = "bb"; $tmp[$cc] = "cc"; var_dump($tmp); ?> output: A ;Ð÷ array(3) { [""]=> string(2) "aa" ^^^^^^^ but needed [""] => "aa" ??? [""]=> string(2) "bb" [";Ð÷"]=> string(2) "cc" } WHY ? -- Edit bug report at http://bugs.php.net/?id=21396&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21396&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21396&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21396&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21396&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21396&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21396&r=support Expected behavior: http://bugs.php.net/fix.php?id=21396&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21396&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21396&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21396&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21396&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21396&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21396&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21396&r=gnused