|
@@ 115-121 (lines=7) @@
|
| 112 |
|
$array->addRepresentation($rep); |
| 113 |
|
|
| 114 |
|
if ($array->size) { |
| 115 |
|
if ($this->max_depth && $o->depth >= $this->max_depth) { |
| 116 |
|
$array->hints[] = 'depth_limit'; |
| 117 |
|
|
| 118 |
|
$this->applyPlugins($var, $array, self::TRIGGER_DEPTH_LIMIT); |
| 119 |
|
|
| 120 |
|
return $array; |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
// Don't even bother with reference checking below 5.2.2. It's an |
| 124 |
|
// absolute nightmare. The foreach loop depends on the array pointer |
|
@@ 213-220 (lines=8) @@
|
| 210 |
|
|
| 211 |
|
$this->object_hashes[$hash] = $object; |
| 212 |
|
|
| 213 |
|
if ($this->max_depth && $o->depth >= $this->max_depth) { |
| 214 |
|
$object->hints[] = 'depth_limit'; |
| 215 |
|
|
| 216 |
|
$this->applyPlugins($var, $object, self::TRIGGER_DEPTH_LIMIT); |
| 217 |
|
unset($this->object_hashes[$hash]); |
| 218 |
|
|
| 219 |
|
return $object; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
// ArrayObject (and maybe ArrayIterator, did not try yet) unsurprisingly |
| 223 |
|
// consist of mainly dark magic. What bothers me most, var_dump sees no |