|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-10 20:24 UTC] sniper@php.net
[2007-05-11 07:14 UTC] jonathan dot de dot berdt at howest dot be
[2007-05-11 09:39 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
Description: ------------ error thrown on the first 'foreach' command. server using: php 5.2.1 Reproduce code: --------------- $query = array ('table', 'room'); $criteria = array ('table' => array ('subjects', 'teachers', 'groups', 'rooms', 'tableparts'), 'room' => array ('rooms', 'roomtypes', 'roomcapacity', 'roomcomputercapacity', 'roomotherkeywords', 'tableparts')); foreach ($query[] as $qry) { foreach($criteria[$qry][] as $crit) { if (isset($_GET['leer_' . $qry . 'query_' . $crit. '_removekeyword'])) { unset ($_SESSION['leer_' . $qry . 'query_' . $crit . '_selectedkeywords'] [$_GET['leer_' . $qry . 'query_' . $crit. '_removekeyword']]); } } } Expected result: ---------------- this code should process a number of session variables. These variables have a structured name, and thus the changing parts have been put in these small arrays. Actual result: -------------- Fatal error: Invalid opcode 81/16/8. in /var/www/html/dokeos/main/leer/leer.php on line 198