#41351 [Fbk->Opn]: Fatal error: Invalid opcode 81/16/8

From: Date: Fri, 11 May 2007 07:14:36 +0000
Subject: #41351 [Fbk->Opn]: Fatal error: Invalid opcode 81/16/8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112522@lists.php.net to get a copy of this message
 ID:               41351
 User updated by:  jonathan dot de dot berdt at howest dot be
 Reported By:      jonathan dot de dot berdt at howest dot be
-Status:           Feedback
+Status:           Open
 Bug Type:         *General Issues
 Operating System: linux
 PHP Version:      5.2.2
 New Comment:

Yes, that solved my problem/fatal error!


Previous Comments:
------------------------------------------------------------------------

[2007-05-10 20:24:57] sniper@php.net

How about you remove those []'s from this:
foreach ($query[] as $qry)

Might actually work..and same for the other foreach.

------------------------------------------------------------------------

[2007-05-10 12:40:02] jonathan dot de dot berdt at howest dot be

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41351&edit=1


Thread (4 messages)

« previous php.bugs (#112522) next »