objects need to be cloned, if not then upon retrieval you will get the serialized object instead of the object which of course will break.

CommentFileSizeAuthor
object_set.patch660 byteschx

Comments

lyricnz’s picture

Wouldn't the same apply for arrays? Perhaps the test should be !is_string()?

robertdouglass’s picture

@lyricnz: Warning: __clone method called on non-object will happen if you try to clone an array.

robertdouglass’s picture

Status: Needs review » Fixed

Thanks, committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)