diff options
Diffstat (limited to 'Zend/tests/bug69996.phpt')
-rw-r--r-- | Zend/tests/bug69996.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/tests/bug69996.phpt b/Zend/tests/bug69996.phpt index 178e36837a..f9044677cd 100644 --- a/Zend/tests/bug69996.phpt +++ b/Zend/tests/bug69996.phpt @@ -4,17 +4,17 @@ Bug #69996 (Changing the property of a cloned object affects the original) <?php function method($cache) { - $prepared = clone $cache; - var_dump($prepared->data); - $prepared->data = "bad"; - return $prepared; + $prepared = clone $cache; + var_dump($prepared->data); + $prepared->data = "bad"; + return $prepared; } $cache = new stdClass(); $cache->data = "good"; for ($i = 0; $i < 5; ++$i) { - method($cache); + method($cache); } ?> --EXPECT-- |