|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-03 20:43 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-09-03 20:43 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 19:00:01 2025 UTC |
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"..."