anno1986
01-26-2014, 09:32 AM
Hi,
I finally found a fix which seems to solve the issue with
"PHP Fatal error: Nesting level too deep - recursive dependency?".
--- linkedhashmap.php.ORG 2014-01-26 16:30:42.000000000 +0100
+++ linkedhashmap.php 2014-01-26 16:26:52.000000000 +0100
@@ -189,7 +189,7 @@
*/
public function transfer(Arrays $newEntries){
$newCapacity = $newEntries->length();
- for($entry = $this->header->getAfter(); $entry != $this->header; $entry = $entry->getAfter()){
+ for($entry = $this->header->getAfter(); $entry !== $this->header; $entry = $entry->getAfter()){
$index = $this->indexFor($entry->getHash(), $newCapacity);
$entry->setNext($newEntries[$index]);
$newEntries[$index] = $entry;