--- 2.9.1.1.orig/libraries/common.lib.php.orig	2007-08-10 14:23:28.000000000 +0200
+++ 2.9.1.1/libraries/common.lib.php	2007-08-10 14:27:18.000000000 +0200
@@ -510,6 +510,11 @@
  */
 function PMA_arrayWalkRecursive(&$array, $function, $apply_to_keys_also = false)
 {
+    static $recursive_counter = 0;
+    if (++$recursive_counter > 1000) {
+        die('possible deep recursion attack');
+    }
+
     foreach ($array as $key => $value) {
         if (is_array($value)) {
             PMA_arrayWalkRecursive($array[$key], $function, $apply_to_keys_also);
@@ -525,6 +530,7 @@
             }
         }
     }
+    $recursive_counter--;
 }
 
 /**
