git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
finish fixes for removal of 'each'; fix html injection in demo code
[plcapi.git]
/
tests
/
benchmark.php
diff --git
a/tests/benchmark.php
b/tests/benchmark.php
index
43cbc42
..
0ca9e28
100644
(file)
--- a/
tests/benchmark.php
+++ b/
tests/benchmark.php
@@
-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++) {