CGI-Session

 view release on metacpan or  search on metacpan

t/bug21952.t  view on Meta::CPAN

#    (<driverClass>->new( $self->{_DRIVER_ARGS} ).
#
#    -------------------
#    My suggestion
#
#    My idea is that the custom data, here $opt_dsn, *should not* be altered 
#    by the underlying CGI::Session logic.
#    My suggestion to restore a good behavior is to prevent 
#    CGI::Session::Driver to turn its argument into an object.
#    This is easily done by patching CGI::Forge::Driver::new() as follows
#    ( *bold* shows the suggested patch, /*bold italic*/ shows my other 
#    "perturbations" ) :
#
#    sub new {
#    /*my ($class, $args) = @_;
#    croak "Invalid argument type passed to driver: " . Dumper($args) if 
#    $args && ! ref $args;
#    $args ||= {};*/
#
#    # my $self = bless ($args, $class) # wrong : $args is a custom 
#    data that shouldn't be altered



( run in 1.137 second using v1.01-cache-2.11-cpan-c333fce770f )