Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix object dump fails when property name has its access level outside…

… quotes. (like ["abc":protected])
  • Loading branch information...
commit ba2c8e083c31ed3c920e01d09aef1a6ec15ba95a 1 parent b2b62a7
Kota Saito kotas authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/phpsh.php
4 src/phpsh.php
View
@@ -208,6 +208,10 @@ function ___phpsh___parse_dump_obj_lines($x, $dump, &$pos, $arr_len, $depth,
for ($i = 0; $i < $arr_len; $i++) {
___phpsh___parse_dump_assert($dump, $pos, $depth_str.$indent_str.'[');
$key = ___phpsh___parse_dump_delim_grab($dump, $pos, false, '""');
+ if ($dump[$pos] == ':') {
+ $key .= ':' . ___phpsh___parse_dump_delim_grab($dump, $pos, false, ':]');
+ $pos--;
+ }
___phpsh___parse_dump_assert($dump, $pos, "]=>\n".$depth_str.$indent_str);
if ($dump[$pos] == '*') {
___phpsh___parse_dump_assert($dump, $pos, '*RECURSION*');
Please sign in to comment.
Something went wrong with that request. Please try again.