@@ 277-280 (lines=4) @@ | ||
274 | $list[] = $var; |
|
275 | foreach ($fields as $k => &$v) { |
|
276 | $vis = ''; |
|
277 | if (isset($k[0]) && $k[0] === "\x00") { |
|
278 | $vis = ' <span class="tracy-dump-visibility">' . ($k[1] === '*' ? 'protected' : 'private') . '</span>'; |
|
279 | $k = substr($k, strrpos($k, "\x00") + 1); |
|
280 | } |
|
281 | $hide = is_string($k) && isset($options[self::KEYS_TO_HIDE][strtolower($k)]) ? self::HIDDEN_VALUE : null; |
|
282 | $k = is_int($k) || preg_match('#^\w{1,50}\z#', $k) ? $k : '"' . Helpers::escapeHtml(self::encodeString($k, $options[self::TRUNCATE])) . '"'; |
|
283 | $out .= '<span class="tracy-dump-indent"> ' . str_repeat('| ', $level) . '</span>' |
|
@@ 376-379 (lines=4) @@ | ||
373 | ||
374 | foreach (self::exportObject($var, $options[self::OBJECT_EXPORTERS], $options[self::DEBUGINFO]) as $k => $v) { |
|
375 | $vis = 0; |
|
376 | if (isset($k[0]) && $k[0] === "\x00") { |
|
377 | $vis = $k[1] === '*' ? 1 : 2; |
|
378 | $k = substr($k, strrpos($k, "\x00") + 1); |
|
379 | } |
|
380 | $hide = is_string($k) && isset($options[self::KEYS_TO_HIDE][strtolower($k)]); |
|
381 | $k = is_int($k) || preg_match('#^\w{1,50}\z#', $k) ? $k : '"' . self::encodeString($k, $options[self::TRUNCATE]) . '"'; |
|
382 | $obj['items'][] = [$k, $hide ? self::HIDDEN_VALUE : self::toJson($v, $options, $level + 1), $vis]; |