kareila: "PERL!" (perl)
kareila ([personal profile] kareila) wrote in [site community profile] dw_dev2010-10-13 02:30 pm
Entry tags:

S2 constant errors

With global warnings on, some permutation of these lines shows up in the log whenever I hit an S2 page:

Constant subroutine S2::PROPS redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::STATIC redefined at /usr/share/perl/5.8/constant.pm line 103.
Constant subroutine S2::VTABLE redefined at /usr/share/perl/5.8/constant.pm line 103.

Any ideas as to why this might be happening?
alierak: (Default)

[personal profile] alierak 2010-10-14 02:50 pm (UTC)(link)
If I understand [personal profile] fu correctly, they're only defined once in all the code, but an Apache process that stays running for a while may read a new version of the code, containing a new definition of the constants. If that's the case, restarting Apache should make it quit warning you.