Bug #80053 [NEW]: Undefined array key "12345"...

From: Date: Thu, 03 Sep 2020 20:41:06 +0000
Subject: Bug #80053 [NEW]: Undefined array key "12345"...
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228868@lists.php.net to get a copy of this message
From: cocnick2000 at gmail dot com Operating system: Windows 10 2004 64Bit PHP version: 8.0.0beta3 Package: Session related Bug Type: Bug Bug description:Undefined array key "12345"... Description: ------------ on php7.4.9 i can unset my session array but on php8.0beta3 i get following error message: "...undefined error key..." Session: $_SESSION['tmp_image_access']['12345'] Test script: --------------- if (isset($_SESSION['tmp_image_access'])) foreach ($_SESSION['tmp_image_access'] as $row) { $this->db->query('UPDATE images SET username = ? WHERE token = ?', $this->data['username'], $row); session_unset($_SESSION['tmp_image_access'][$row]); } Expected result: ---------------- The session should be deleted with the token '12345' Actual result: -------------- i get the following error message on the page "...Undefined array key "12345"..." -- Edit bug report at https://bugs.php.net/bug.php?id=80053&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80053&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80053&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80053&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80053&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80053&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80053&r=support Expected behavior: https://bugs.php.net/fix.php?id=80053&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80053&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80053&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80053&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80053&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80053&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80053&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80053&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80053&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80053&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80053&r=mysqlcfg

« previous php.bugs (#228868) next »