From: ike at concept47 dot com Operating system: Windows Xp sp2 PHP version: 5.2.5 PHP Bug Type: Session related Bug description: Numeric keys in sessions fail silently
Description: ------------ trying to use numeric keys for sessions vars, fails, silently. This is bad and can lead to lost hours/money for developer. I am just asking for this sort of assignment to fail in a far more obvious manner. Reproduce code: --------------- $_SESSION['1234'] = "boooo!" Expected result: ---------------- I expect the session variable to be stored or else fail miserably like this assignment would $123 = "dummy!" Actual result: -------------- the session variable with a numeric key is never stored ... and it might take a developer a while to figure out why, as other session vars are stored just fine. -- Edit bug report at http://bugs.php.net/?id=44545&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44545&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44545&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44545&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44545&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44545&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44545&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44545&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44545&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44545&r=support Expected behavior: http://bugs.php.net/fix.php?id=44545&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44545&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44545&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44545&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44545&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44545&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44545&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44545&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44545&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44545&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44545&r=mysqlcfg
