develooper Front page | perl.perl5.porters | Postings from May 2012

[perl #111918] [PATCH] Fix thawing seen objects in STORABLE_attach hook.

From:
Father Chrysostomos via RT
Date:
May 22, 2012 20:13
Subject:
[perl #111918] [PATCH] Fix thawing seen objects in STORABLE_attach hook.
Message ID:
rt-3.6.HEAD-19490-1337742819-1088.111918-15-0@perl.org
On Wed Mar 21 10:21:43 2012, igor.zaytsev@gmail.com wrote:
> Before any thaw hook is called Storable creates a new blessed object
> that
> is stored in a seen cache and then is provided to the hook. That is
> fine
> for STORABLE_thaw which fills in this object and returns it.
> STORABLE_attach
> on the other hand can create entirely new object by itself, so one
> memoized before should be thrown out to be replaced by that new
> object.
> ---
>  dist/Storable/Storable.xs       |   18 +++++++++++++++++-
>  dist/Storable/t/attach_errors.t |   37
> ++++++++++++++++++++++++++++++++++++-
>  2 files changed, 53 insertions(+), 2 deletions(-)

Thank you.  Applied as ecc6a8caad.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=111918



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About