blob: 50156428e1713b5aa62007156a7d0a2a7a43ade4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Testing multiple clone statements
--FILE--
<?php
$a = clone clone $b = new stdClass;
var_dump($a == $b);
$c = clone clone clone $b = new stdClass;
var_dump($a == $b, $b == $c);
class foo { }
$d = clone $a = $b = new foo;
var_dump($a == $d, $b == $d, $c == $a);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)
|