Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/ZF-11356' of https://github.com/adamlundrigan/zf2
Browse files Browse the repository at this point in the history
…into hotfix/zf-11356
  • Loading branch information
weierophinney committed Sep 2, 2011
3 parents 1482b41 + 8f33028 + f2b49c3 commit c1b8314
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ protected function _encodeObject(&$value)
}
}

return '{"__className":"'
. str_replace('\\', '\\\\', get_class($value)) . '"'
$className = get_class($value);
return '{"__className":'
. $this->_encodeString($className)
. $props . '}';
}

Expand Down

0 comments on commit c1b8314

Please sign in to comment.