comparison vendor/symfony/var-dumper/Cloner/VarCloner.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
31 $refsCounter = 0; // Hard references counter 31 $refsCounter = 0; // Hard references counter
32 $queue = [[$var]]; // This breadth-first queue is the return value 32 $queue = [[$var]]; // This breadth-first queue is the return value
33 $indexedArrays = []; // Map of queue indexes that hold numerically indexed arrays 33 $indexedArrays = []; // Map of queue indexes that hold numerically indexed arrays
34 $hardRefs = []; // Map of original zval hashes to stub objects 34 $hardRefs = []; // Map of original zval hashes to stub objects
35 $objRefs = []; // Map of original object handles to their stub object counterpart 35 $objRefs = []; // Map of original object handles to their stub object counterpart
36 $objects = []; // Keep a ref to objects to ensure their handle cannot be reused while cloning
36 $resRefs = []; // Map of original resource handles to their stub object counterpart 37 $resRefs = []; // Map of original resource handles to their stub object counterpart
37 $values = []; // Map of stub objects' hashes to original values 38 $values = []; // Map of stub objects' hashes to original values
38 $maxItems = $this->maxItems; 39 $maxItems = $this->maxItems;
39 $maxString = $this->maxString; 40 $maxString = $this->maxString;
40 $minDepth = $this->minDepth; 41 $minDepth = $this->minDepth;
198 $a = null; 199 $a = null;
199 } 200 }
200 } 201 }
201 if (empty($objRefs[$h])) { 202 if (empty($objRefs[$h])) {
202 $objRefs[$h] = $stub; 203 $objRefs[$h] = $stub;
204 $objects[] = $v;
203 } else { 205 } else {
204 $stub = $objRefs[$h]; 206 $stub = $objRefs[$h];
205 ++$stub->refCount; 207 ++$stub->refCount;
206 $a = null; 208 $a = null;
207 } 209 }