Le 5 mars 07 à 18:48, Dave Rolsky a écrit :
On Mon, 5 Mar 2007, Éric Cholet wrote:
Are there any plans to apply Tatsuhiko Miyagawa's patch at
http://www.mail-archive.com/[email protected]/msg05633.html
It fixes an issue I am having when thawing seralized datetimes:
Parameter #1 (undef) to DateTime::Locale::load was an 'undef',
which is not one of the allowed types: scalar
at /Library/Perl/5.8.6/DateTime/Locale.pm line 199
DateTime::Locale::load('undef', 'undef') called at /Library/
Perl/5.8.6/DateTime/Locale/Base.pm line 135
DateTime::Locale::Base::STORABLE_attach
('DateTime::Locale::en', 0, 'undef') called at blib/lib/
Storable.pm (autosplit into blib/lib/auto/Storable/thaw.al) line 366
I think this bug may actually be a different bug, fixed in
DateTime::Locale 0.32. However, I just release DT::L 0.34, which
should fix the problem Tatsuhiko was seeing. His patch wasn't quite
right, as it lost information across a freeze/thaw, and regardless
I think there may be a bug in Storable's use of STORABLE_attach
when it is called as part of thawing a different object.
So in summary, please install DT::L 0.34 and let me know if that
fixes the problem you're seeing. I expect it will.
Dave, thanks for the quick release, DT::L 0.34 indeed fixes the
problem I was seeing.
--
Éric Cholet