From: jonathan dot de dot berdt at howest dot be Operating system: linux PHP version: 5.2.2 PHP Bug Type: *General Issues Bug description: Fatal error: Invalid opcode 81/16/8
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 bug report at http://bugs.php.net/?id=41351&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41351&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41351&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41351&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41351&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41351&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41351&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41351&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41351&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41351&r=support Expected behavior: http://bugs.php.net/fix.php?id=41351&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41351&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41351&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41351&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41351&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41351&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41351&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41351&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41351&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41351&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41351&r=mysqlcfg