Home
last modified time | relevance | path

Searched refs:clone (Results 1 – 25 of 96) sorted by relevance

1234

/PHP-5.3/ext/date/tests/
H A DDateTimeZone_clone_basic1.phpt2 Test clone on DateTimeZone objects
9 echo "*** Testing clone on DateTime objects ***\n";
14 // ..create a clone of it ..Clone
15 $clone = clone $orig;
18 var_dump($clone);
20 if ($clone != $orig) {
22 }else if ($clone === $orig) {
31 *** Testing clone on DateTime objects ***
H A DDateTime_clone_basic1.phpt2 Test clone on DateTime objects
9 echo "*** Testing clone on DateTime objects ***\n";
14 // ..create a clone of it ..Clone
15 $clone = clone $orig;
21 echo "Clone: " . $clone->format("H:i:s") . "\n";
26 *** Testing clone on DateTime objects ***
H A DDateTimeZone_clone_basic3.phpt2 Test clone of DateTimeZOne objects
8 echo "*** Testing clone on DateTime objects ***\n";
17 echo "\n-- clone it --\n";
18 $d1_clone = clone $d1;
24 echo "\n-- clone it --\n";
25 $d2_clone = clone $d1_clone;
30 *** Testing clone on DateTime objects ***
44 -- clone it --
64 -- clone it --
H A DDateTime_clone_basic3.phpt2 Test clone of DateTime objects
8 echo "*** Testing clone on DateTime objects ***\n";
17 echo "\n-- clone it --\n";
18 $d1_clone = clone $d1;
24 echo "\n-- clone it --\n";
25 $d2_clone = clone $d1_clone;
30 *** Testing clone on DateTime objects ***
56 -- clone it --
88 -- clone it --
H A DDateTimeZone_clone_basic4.phpt2 Test clone of DateTimeZone derived objects with __clone magic method
14 echo "*** Testing clone of objects derived from DateTimeZone class with __clone magic method***\n";
17 $d1_clone = clone $d1;
19 //verify clone by calling method on new object
25 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
H A DDateTime_clone_basic4.phpt2 Test clone of DateTime derived objects with __clone magic method
17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n";
20 $d1_clone = clone $d1;
22 //verify clone by calling method on new object
28 *** Testing clone of objects derived from DateTime class with __clone magic method***
H A DDateTimeZone_clone_basic2.phpt2 Testing clone on objects whoose class derived from DateTimeZone class
18 echo "*** Testing clone on objects whoose class derived from DateTimeZone class ***\n";
22 $d1_clone = clone $d1;
27 $d2_clone = clone $d2;
33 *** Testing clone on objects whoose class derived from DateTimeZone class ***
H A DDateTime_clone_basic2.phpt2 Test clone of objects whoose class derived from DateTime class
19 echo "*** Testing clone on objects whoose class derived from DateTime class ***\n";
23 $d1_clone = clone $d1;
28 $d2_clone = clone $d2;
33 *** Testing clone on objects whoose class derived from DateTime class ***
/PHP-5.3/Zend/tests/
H A Dclone_002.phpt2 Testing multiple clone statements
6 $a = clone clone $b = new stdClass;
10 $c = clone clone clone $b = new stdClass;
15 $d = clone $a = $b = new foo;
H A Dbug27268.phpt2 Bug #27268 (Bad references accentuated by clone)
16 $clone = clone $A;
17 $clone->a = array();
H A Dclosure_024.phpt2 Closure 024: Trying to clone the Closure object
7 return clone function () {
16 Fatal error: Trying to clone an uncloneable object of class Closure in %s on line %d
H A Dobjects_031.phpt6 $x[] = clone new stdclass;
7 $x[] = clone new stdclass;
8 $x[] = clone new stdclass;
H A Dmagic_methods_001.phpt17 print "clone\n";
35 clone $a;
46 clone
/PHP-5.3/ext/spl/tests/
H A DarrayObject_clone_basic2.phpt9 $c->p1 = 'new prop added to c before clone';
11 $ao2 = clone $ao1;
13 $c->p2 = 'new prop added to c after clone';
21 string(32) "new prop added to c before clone"
23 string(31) "new prop added to c after clone"
31 string(32) "new prop added to c before clone"
33 string(31) "new prop added to c after clone"
42 string(32) "new prop added to c before clone"
H A DarrayObject_clone_basic3.phpt14 $wrappedObject->dynamic1 = 'new prop added to $wrappedObject before clone';
15 $clonedOuterArrayObject = clone $outerArrayObject;
16 $wrappedObject->dynamic2 = 'new prop added to $wrappedObject after clone';
29 string(45) "new prop added to $wrappedObject before clone"
31 string(44) "new prop added to $wrappedObject after clone"
43 string(45) "new prop added to $wrappedObject before clone"
45 string(44) "new prop added to $wrappedObject after clone"
60 string(45) "new prop added to $wrappedObject before clone"
62 string(44) "new prop added to $wrappedObject after clone"
76 string(45) "new prop added to $wrappedObject before clone"
H A DarrayObject_clone_basic1.phpt7 $a['p1'] = 'new element added to a before clone';
9 $aa2 = clone $aa1;
11 $a['p2'] = 'new element added to a after clone';
23 string(35) "new element added to a before clone"
25 string(34) "new element added to a after clone"
H A Ddit_004.phpt2 SPL: DirectoryIterator and clone
6 $b = clone $a;
12 $c = clone $a;
H A Ddit_005.phpt2 SPL: FilesystemIterator and clone
6 $b = clone $a;
12 $c = clone $a;
H A Dbug36941.phpt2 Bug #36941 (ArrayIterator does not clone itself)
9 $b = clone $a;
22 $b = clone $a;
/PHP-5.3/tests/classes/
H A Dclone_006.phpt30 $clone = clone $original;
32 echo $clone->id . "\n";
33 echo $clone->name . "\n";
34 echo $clone->address . "\n";
/PHP-5.3/ext/simplexml/tests/
H A Dbug39662.phpt14 $clone = clone $root;
16 var_dump($clone);
17 var_dump($clone->asXML());
/PHP-5.3/ext/mysqli/tests/
H A Dmysqli_driver_unclonable.phpt2 Trying to clone mysqli_driver object
9 $driver_clone = clone $driver;
13 Fatal error: Trying to clone an uncloneable object of class mysqli_driver in %s on line %d
H A Dmysqli_unclonable.phpt2 Trying to clone mysqli object
17 $link_clone = clone $link;
23 Fatal error: Trying to clone an uncloneable object of class mysqli in %s on line %d
/PHP-5.3/ext/intl/tests/
H A Dformatter_clone.phpt16 $fmt_clone = clone $fmt;
23 $res_str .= "Formatted(clone) number: " . ut_nfmt_format( $fmt_clone, $test_value ) . "\n";
30 Formatted(clone) number: 12345.123456
H A Dbug62915-2.phpt23 $clone = clone $obj;
24 var_dump(get_class($clone));

Completed in 40 milliseconds

1234