diff options
Diffstat (limited to 'ext/simplexml')
-rw-r--r-- | ext/simplexml/tests/002.phpt | 2 | ||||
-rwxr-xr-x | ext/simplexml/tests/006.phpt | 2 | ||||
-rwxr-xr-x | ext/simplexml/tests/019.phpt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/simplexml/tests/002.phpt b/ext/simplexml/tests/002.phpt index 009101adb0..d1f6a0621f 100644 --- a/ext/simplexml/tests/002.phpt +++ b/ext/simplexml/tests/002.phpt @@ -24,7 +24,7 @@ EOF; $sxe = simplexml_load_string($xml); -$copy = $sxe->__clone(); +$copy = clone $sxe; print_r($copy); diff --git a/ext/simplexml/tests/006.phpt b/ext/simplexml/tests/006.phpt index 9e81f20dd9..9360b2dff3 100755 --- a/ext/simplexml/tests/006.phpt +++ b/ext/simplexml/tests/006.phpt @@ -40,7 +40,7 @@ foreach($sxe as $name => $data) { echo "===CLONE===\n"; -foreach($sxe->__clone() as $name => $data) { +foreach(clone $sxe as $name => $data) { var_dump($name); var_dump(trim($data)); } diff --git a/ext/simplexml/tests/019.phpt b/ext/simplexml/tests/019.phpt index 09f0569d7a..a54a1bdd52 100755 --- a/ext/simplexml/tests/019.phpt +++ b/ext/simplexml/tests/019.phpt @@ -40,7 +40,7 @@ foreach($sxe->children() as $name => $data) { echo "===CLONE===\n"; -foreach($sxe->children()->__clone() as $name => $data) { +foreach(clone $sxe->children() as $name => $data) { var_dump($name); var_dump(trim($data)); } |