Home
last modified time | relevance | path

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

12345678

/PHP-8.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) {
30 *** 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";
25 *** 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;
29 *** Testing clone on DateTime objects ***
55 -- clone it --
87 -- 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;
29 *** Testing clone on DateTime objects ***
59 -- clone it --
95 -- 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
24 *** 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
27 *** Testing clone of objects derived from DateTime class with __clone magic method***
H A DDateTimeZone_clone_basic2.phpt2 Testing clone on objects whose class derived from DateTimeZone class
18 echo "*** Testing clone on objects whose class derived from DateTimeZone class ***\n";
22 $d1_clone = clone $d1;
27 $d2_clone = clone $d2;
32 *** Testing clone on objects whose class derived from DateTimeZone class ***
H A DDateTime_clone_basic2.phpt2 Test clone of objects whose class derived from DateTime class
19 echo "*** Testing clone on objects whose class derived from DateTime class ***\n";
23 $d1_clone = clone $d1;
28 $d2_clone = clone $d2;
32 *** Testing clone on objects whose class derived from DateTime class ***
/PHP-8.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 Dbug68262.phpt13 $clone = clone $first;
17 $clone = clone $first;
18 $clone->p = 'foo';
H A Dbug27268.phpt2 Bug #27268 (Bad references accentuated by clone)
17 $clone = clone $A;
18 $clone->a = array();
H A Dobjects_031.phpt6 $x[] = clone new stdclass;
7 $x[] = clone new stdclass;
8 $x[] = clone new stdclass;
H A Dbug71275.phpt17 echo "I'm working hard to clone";
23 clone $instance;
27 I'm working hard to clone
/PHP-8.3/ext/spl/tests/
H A DarrayObject_clone_basic2.phpt11 $c->p1 = 'new prop added to c before clone';
13 $ao2 = clone $ao1;
15 $c->p2 = 'new prop added to c after clone';
23 string(32) "new prop added to c before clone"
25 string(31) "new prop added to c after clone"
33 string(32) "new prop added to c before clone"
35 string(31) "new prop added to c after clone"
44 string(32) "new prop added to c before clone"
H A DarrayObject_clone_basic3.phpt16 $wrappedObject->dynamic1 = 'new prop added to $wrappedObject before clone';
17 $clonedOuterArrayObject = clone $outerArrayObject;
18 $wrappedObject->dynamic2 = 'new prop added to $wrappedObject after clone';
31 string(45) "new prop added to $wrappedObject before clone"
33 string(44) "new prop added to $wrappedObject after clone"
45 string(45) "new prop added to $wrappedObject before clone"
47 string(44) "new prop added to $wrappedObject after clone"
62 string(45) "new prop added to $wrappedObject before clone"
64 string(44) "new prop added to $wrappedObject after clone"
78 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 Dbug72888.phpt2 Bug #72888 (Segfault on clone on splFileObject)
8 $y=clone $x;
15 string(60) "Trying to clone an uncloneable object of class SplFileObject"
/PHP-8.3/ext/simplexml/tests/
H A Dbug39662.phpt14 $clone = clone $root;
16 var_dump($clone);
17 var_dump($clone->asXML());
/PHP-8.3/ext/intl/tests/
H A Dbug81019.phpt2 Bug #81019: Unable to clone NumberFormatter after failed parse()
10 $fmt2 = clone $fmt;
14 $datefmt2 = clone $datefmt;
18 $msgfmt2 = clone $msgfmt;
H A Dtimezone_clone_basic.phpt2 IntlTimeZone clone handler: basic test
11 print_r(clone $tz1);
13 //clone non-owned object
16 print_r(clone $gmt);
H A Dtimezone_clone_error.phpt2 IntlTimeZone clone handler: error test
16 var_dump(clone $tz);
28 string(39) "Cannot clone unconstructed IntlTimeZone"
/PHP-8.3/tests/classes/
H A Dclone_006.phpt28 $clone = clone $original;
30 echo $clone->id . "\n";
31 echo $clone->name . "\n";
32 echo $clone->address . "\n";
/PHP-8.3/Zend/tests/readonly_props/
H A Dreadonly_clone_error5.phpt2 Readonly property clone indirect variation for JIT
36 var_dump(clone (new TestSetOnce()));
42 var_dump(clone (new TestSetOnce()));
48 var_dump(clone (new TestSetTwice()));
54 var_dump(clone (new TestSetTwice()));
/PHP-8.3/ext/mysqli/tests/
H A Dmysqli_driver_unclonable.phpt2 Trying to clone mysqli_driver object
8 $driver_clone = clone $driver;
12 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class mysqli_driver in %s:%d
/PHP-8.3/ext/reflection/tests/
H A DReflectionClass_isCloneable_001.phpt18 $h = clone $foo;
30 $h = clone $foo;
38 $h = clone $closure;
45 $h = clone new simplexmlelement('<test></test>');
52 $h = clone new xmlwriter;
72 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLWriter in %s:%d

Completed in 23 milliseconds

12345678