From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 17:58:40 +0000 (+0000) Subject: Update test for an additional check to ensure the variable used for an X-Git-Tag: RELEASE_2_0_0RC1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=088acb6efbc465b0db6c2524f88493126e70d0f4;p=php Update test for an additional check to ensure the variable used for an index would not be modified during deference. --- diff --git a/ext/simplexml/tests/007.phpt b/ext/simplexml/tests/007.phpt index 023d7d3c62..ca4c22b040 100755 --- a/ext/simplexml/tests/007.phpt +++ b/ext/simplexml/tests/007.phpt @@ -23,7 +23,11 @@ unset($sxe['id']); var_dump($sxe['id']); unset($sxe->elem1['attr1']); var_dump($sxe->elem1['attr1']); - +echo "===Misc.===\n"; +$a = 4; +var_dump($a); +$dummy = $sxe->elem1[$a]; +var_dump($a); ?> ===Done=== --EXPECT-- @@ -39,4 +43,7 @@ string(2) "12" ===Unset=== NULL NULL +===Misc.=== +int(4) +int(4) ===Done===