Stop relying on Package::Stash PP bugs
authorFlorian Ragwitz <rafl@debian.org>
Mon, 3 Jan 2011 19:59:37 +0000 (19:59 +0000)
committerFlorian Ragwitz <rafl@debian.org>
Mon, 3 Jan 2011 19:59:37 +0000 (19:59 +0000)
commit31aeca68d9fa07102de15a04881ecad4ecf7104c
tree2cbec7f4d39886722fb33c0b7ff9066d476966de
parente68baaf3230c5470afbedef4973d3a2e77bac90d
Stop relying on Package::Stash PP bugs

We want to know if $MyApp::_config contains something like a valid
configuration, not if the package symbol exists.

The pure-perl version Package::Stash has always been buggy in assuming that a
scalar symbol containing undef is a symbol that doesn't exist. This is to work
around the fact that getting the SCALAR slot from a glob in pure perl
autovivifies the scalar to undef. Package::Stash::XS doesn't have that
limitation and is used transparently by Package::Stash if it's installed. That
exposed this bug in our code.
lib/Catalyst/Component.pm