Searched refs:clone (Results 1 – 25 of 151) sorted by relevance
1234567
2 Testing multiple clone statements6 $a = clone clone $b = new stdClass;10 $c = clone clone clone $b = new stdClass;15 $d = clone $a = $b = new foo;
13 $clone = clone $first;17 $clone = clone $first;18 $clone->p = 'foo';
2 Bug #27268 (Bad references accentuated by clone)16 $clone = clone $A;17 $clone->a = array();
6 $x[] = clone new stdclass;7 $x[] = clone new stdclass;8 $x[] = clone new stdclass;
17 echo "I'm working hard to clone";23 clone $instance;27 I'm working hard to clone
2 Bug #74862 (Unable to clone instance when private __clone defined)24 $a = clone $this;37 // private clone
2 Test clone on DateTimeZone objects9 echo "*** Testing clone on DateTime objects ***\n";14 // ..create a clone of it ..Clone15 $clone = clone $orig;18 var_dump($clone);20 if ($clone != $orig) {22 }else if ($clone === $orig) {31 *** Testing clone on DateTime objects ***
2 Test clone on DateTime objects9 echo "*** Testing clone on DateTime objects ***\n";14 // ..create a clone of it ..Clone15 $clone = clone $orig;21 echo "Clone: " . $clone->format("H:i:s") . "\n";26 *** Testing clone on DateTime objects ***
2 Test clone of DateTimeZOne objects8 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 ***52 -- clone it --80 -- clone it --
2 Test clone of DateTime objects8 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 --
2 Test clone of DateTimeZone derived objects with __clone magic method14 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 object25 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
2 Test clone of DateTime derived objects with __clone magic method17 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 object28 *** Testing clone of objects derived from DateTime class with __clone magic method***
2 Test clone of objects whoose class derived from DateTime class19 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 ***
2 Testing clone on objects whoose class derived from DateTimeZone class18 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 ***
9 $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"
14 $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"
7 $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"
2 Bug #72888 (Segfault on clone on splFileObject)8 $y=clone $x;15 string(60) "Trying to clone an uncloneable object of class SplFileObject"
2 SPL: DirectoryIterator and clone6 $b = clone $a;12 $c = clone $a;
2 SPL: FilesystemIterator and clone6 $b = clone $a;12 $c = clone $a;
14 $clone = clone $root;16 var_dump($clone);17 var_dump($clone->asXML());
28 $clone = clone $original;30 echo $clone->id . "\n";31 echo $clone->name . "\n";32 echo $clone->address . "\n";
2 IntlTimeZone clone handler: basic test13 print_r(clone $tz1);15 //clone non-owned object18 print_r(clone $gmt);
2 Trying to clone mysqli_driver object9 $driver_clone = clone $driver;13 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class mysqli_driver in %s:%d
17 $h = clone $foo;29 $h = clone $foo;37 $h = clone $closure;44 $h = clone new simplexmlelement('<test></test>');51 $h = clone new xmlwriter;71 Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLWriter in %s:%d
Completed in 25 milliseconds