summaryrefslogtreecommitdiff
path: root/tests/testhyperwave
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-03-09 12:45:55 +0000
committerUwe Steinmann <steinm@php.net>2000-03-09 12:45:55 +0000
commitff2443eb6791d79a478e73282a233cdb8846cdfb (patch)
tree425aeea6fa1c7eccd118995d73df92dd37bfff87 /tests/testhyperwave
parentba5089812341c9bf9f845c49670382e7de0a6d5b (diff)
downloadphp-git-ff2443eb6791d79a478e73282a233cdb8846cdfb.tar.gz
- bug fix, insertion of links back into HTML document
- smarter test script
Diffstat (limited to 'tests/testhyperwave')
-rw-r--r--tests/testhyperwave16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/testhyperwave b/tests/testhyperwave
index 5391cc6f34..36f2b8c284 100644
--- a/tests/testhyperwave
+++ b/tests/testhyperwave
@@ -27,8 +27,8 @@
/* Lists an object array
*/
function list_attr($attributes) {
- var_dump($attributes);
- return;
+// var_dump($attributes);
+// return;
for($i=0; $i<count($attributes); $i++) {
$key = key($attributes);
switch($key) {
@@ -59,7 +59,17 @@
printf("\n");
break;
default:
- printf("%s = %s\n", $key, $attributes[$key]);
+ if(is_array($attributes[$key])) {
+ $group_arr = $attributes[$key];
+ $cj = count($group_arr);
+ for($j=0; $j<$cj; $j++) {
+ printf("%s = %s\n", $key, $group_arr[$j]);
+ next($group_arr);
+ }
+ } else {
+ printf("%s = %s\n", $key, $attributes[$key]);
+ }
+
}
next($attributes);
}