upgraded, may get upgraded even after they are encoded, and will
produce the same output either way, but bytes::length returns too big
values for upgraded strings containing characters >127
- - Make FastCGI compatible with modules which use the fileno call to
- determine if a file is open (E.g. IPC::Run)
+ - Fix t/live_fork.t with bleadperl (RT#52100)
Refactoring / cleanups:
- NoTabs and Pod tests moved to t/author so that they're not run
$self->_fix_env( \%env );
- # hack for perl libraries that use FILENO (e.g. IPC::Run)
- # trying to patch FCGI.pm, but not got there yet :/
- local *FCGI::Stream::FILENO = sub { -2 }
- unless FCGI::Stream->can('FILENO');
-
$class->handle_request( env => \%env );
$proc_manager && $proc_manager->pm_post_dispatch();
plan tests => 13; # otherwise
{
- system:
ok(my $result = get('/fork/system/%2Fbin%2Fls'), 'system');
my @result = split /$/m, $result;
$result = join q{}, @result[-4..-1];
}
{
- backticks:
ok(my $result = get('/fork/backticks/%2Fbin%2Fls'), '`backticks`');
my @result = split /$/m, $result;
$result = join q{}, @result[-4..-1];
like($result_ref->{result}, qr{\n.*\n}m, 'contains two newlines');
}
{
- fork:
ok(my $result = get('/fork/fork'), 'fork');
my @result = split /$/m, $result;
$result = join q{}, @result[-4..-1];