Skip Menu |

This queue is for tickets about the PHP-Session CPAN distribution.

Report information
The Basics
Id: 3970
Status: resolved
Priority: 0/
Queue: PHP-Session

People
Owner: Nobody in particular
Requestors: cubic [...] acronis.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.21
Fixed in: 0.21



Subject: if $lenght>limit_on_{ } module die
in {n,m} n and m are limited to integral values less than a preset limit defined when perl is built. This is usually 32766 on the most common platforms. The actual limit can be seen in the error message generated by code such as this: $_ **= $_ , / {$_} / for 2 .. 42; So your module should use loops to fetch data from buffer, for example here: package PHP::Session::Serializer::PHP::State::String; sub parse { my($self, $decoder) = @_; my $length = $decoder->pop_stack(); $decoder->{buffer} =~ s/^"(.{$length})";//s or $decoder->weird; $decoder->process_value($1); }
Thanks, fixed in 0.22. [guest - Fri Oct 3 12:27:52 2003]: Show quoted text
> in {n,m} n and m are limited to integral values less > than a preset limit defined when perl is built. This is > usually 32766 on the most common platforms. The actual > limit can be seen in the error message generated by code > such as this: > > $_ **= $_ , / {$_} / for 2 .. 42; > > So your module should use loops to fetch data from buffer, for
example here: Show quoted text
> package PHP::Session::Serializer::PHP::State::String; > > sub parse { > my($self, $decoder) = @_; > my $length = $decoder->pop_stack(); > $decoder->{buffer} =~ s/^"(.{$length})";//s or $decoder->weird; > $decoder->process_value($1); > } >