protected function dumpRef($is_soft, $ref_counter = null, &$ref_value = null, $ref_type = null) { if (parent::dumpRef($is_soft, $ref_counter, $ref_value, $ref_type)) { return true; } $is_soft = $is_soft ? '@' : '#'; if (!$ref_counter) { $this->line .= $this->style('ref', $is_soft . $this->counter); } else { if (!isset($ref_type)) { $note = ''; } else { switch ($ref_type) { default: $note = $ref_type . ' '; break; case 'object': $note = get_class($ref_value) . ' '; break; case 'resource': $note = 'resource:' . get_resource_type($ref_value) . ' '; break; } } $this->line .= $this->style('note', $note . $is_soft . $ref_counter); } return false; }
protected function dumpRef($is_soft, $ref_counter = null, &$ref_value = null) { if (parent::dumpRef($is_soft, $ref_counter, $ref_value)) { return; } $is_soft = $is_soft ? 'r' : 'R'; $this->line .= "\"{$is_soft}`{$this->counter}:{$ref_counter}\""; }