Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-HTCompiled CPAN distribution.

Report information
The Basics
Id: 17168
Status: open
Priority: 0/
Queue: CGI-Application-Plugin-HTCompiled

People
Owner: MARKSTOS [...] cpan.org
Requestors: marstos [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.01
Fixed in: (no value)



Subject: possible issue in persistent environments.
There may be a bug with this plugin when using in persistent environments such as modperl. The issue is with this line: my %tmpl_params = (c=>$self); It creates a circular reference, which can cause the CGI::App object to not go out of scope at the expected time. This may in turn cause failures elsewhere in the code, such as with CGI::Session, which depends on the flush() method running when DESTROY is called as the object goes out of scope. The workaround is to not use the "c." notation in the template, and change the line to read: my %tmpl_params; Alternatives are being considered. Comments welcome.