Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak/failed check for duplicates when serializing arrays a…
…nd object Affects built in serializer as well as the igbinary7 serializer. The apc serialization/unserialization code was checking IS_REFCOUNTED_P(val). However, when objects were being serialized as strings, the IS_REFCOUNTED bit in the type flags wasn't being set (Bitmask was 0) This meant that if there were two uses of an object being serialized, it would be cloned, since the code treated `dst` as if it couldn't be refcounted, and thus didn't add the mapping from `src`'s zend_refcounted pointer to `dst` into `si->copied` Found this bug while working on igbinary/igbinary7#23
- Loading branch information