@@ 1126-1130 (lines=5) @@ | ||
1123 | // if the recursion is not reset here as it contains |
|
1124 | // a reference to itself. This is the only way I have come up |
|
1125 | // with to stop infinite recursion in this case. |
|
1126 | if($key=='GLOBALS' |
|
1127 | && is_array($val) |
|
1128 | && array_key_exists('GLOBALS',$val)) { |
|
1129 | $val['GLOBALS'] = '** Recursion (GLOBALS) **'; |
|
1130 | } |
|
1131 | ||
1132 | $return[$key] = $this->encodeObject($val, 1, $ArrayDepth + 1); |
|
1133 | } |
|
@@ 1515-1519 (lines=5) @@ | ||
1512 | // if the recursion is not reset here as it contains |
|
1513 | // a reference to itself. This is the only way I have come up |
|
1514 | // with to stop infinite recursion in this case. |
|
1515 | if($name=='GLOBALS' |
|
1516 | && is_array($value) |
|
1517 | && array_key_exists('GLOBALS',$value)) { |
|
1518 | $value['GLOBALS'] = '** Recursion **'; |
|
1519 | } |
|
1520 | ||
1521 | $encoded_value = $this->json_encode($value); |
|
1522 |