From: Sterling Hughes Date: Sat, 17 Jan 2004 16:39:52 +0000 (+0000) Subject: remove the parser errors here, so they accurately reflect what should happen. X-Git-Tag: php_ibase_before_split~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0222780681f03be78aafce3a01f0a1be044fb36;p=php remove the parser errors here, so they accurately reflect what should happen. --- diff --git a/ext/simplexml/tests/profile06.phpt b/ext/simplexml/tests/profile06.phpt index 4e9421a2a3..16d52200c4 100644 --- a/ext/simplexml/tests/profile06.phpt +++ b/ext/simplexml/tests/profile06.phpt @@ -11,7 +11,8 @@ $root = simplexml_load_string(' '); -echo $root->child->attributes('reserved')['attribute']; +$attr = $root->child->attributes('reserved'); +echo $attr['attribute']; echo "\n---Done---\n"; ?> --EXPECT-- diff --git a/ext/simplexml/tests/profile07.phpt b/ext/simplexml/tests/profile07.phpt index 51ffb8efb3..9972f79973 100644 --- a/ext/simplexml/tests/profile07.phpt +++ b/ext/simplexml/tests/profile07.phpt @@ -13,8 +13,11 @@ $root = simplexml_load_string(' $root->register_ns('myns', 'reserved-ns'); -echo $root->child->attributes('reserved')['attribute']; -echo $root->child->attributes('myns')['attribute']; +$rsattr = $root->child->attributes('reserved'); +$myattr = $root->child->attributes('myns'); + +echo $rsattr['attribute']; +echo $myattr['attribute']; echo "\n---Done---\n"; ?> --EXPECT-- diff --git a/ext/simplexml/tests/profile10.phpt b/ext/simplexml/tests/profile10.phpt index 06beee851e..4c62aef43e 100644 --- a/ext/simplexml/tests/profile10.phpt +++ b/ext/simplexml/tests/profile10.phpt @@ -11,9 +11,12 @@ $root = simplexml_load_string(' '); -echo $root->child->attributes('reserved')['attribute']; +$rsattr = $root->child->attributes('reserved'); +$spattr = $root->child->attributes('special'); + +echo $rsattr['attribute']; echo "\n"; -echo $root->child->attributes('special')['attribute']; +echo $spattr['attribute']; foreach ($root->child['attribute'] as $attr) { echo "$attr\n"; }