finish fixes for removal of 'each'; fix html injection in demo code
[plcapi.git] / tests / benchmark.php
index 43cbc42..0ca9e28 100644 (file)
@@ -167,7 +167,7 @@ for ($i = 0; $i < $num_tests; $i++) {
     for ($k = 0; $k < $l; $k++) {
         $val1 = $value->arraymem($k);
         $out = array();
-        while (list($name, $val) = $val1->structeach()) {
+        foreach($val1 as $name => $val) {
             $out[$name] = array();
             $m = $val->arraysize();
             for ($j = 0; $j < $m; $j++) {