Stas Bekman wrote:
[...]
But you don't explain what you mean by a crippled STDOUT.

[...]


--- internal_redirect.pm.orig   2004-02-11 19:43:40.000000000 +0100
+++ internal_redirect.pm        2004-02-11 19:43:54.000000000 +0100
@@ -21,6 +21,7 @@
     else {
         # main-req
         my $redirect_uri = $args{uri};
+        close STDOUT;
         $r->internal_redirect("$redirect_uri?main=modperl");
     }

As I pointed out in my previous mail,
modperl_io_perlio_override_stdout
expects that STDOUT on input is valid which makes it incompatible
with mod_perl_1.2x.

And yes, I think that this is a bug (just because the function has "override"
in it's name). You can override an invalid handle.
So the error is to croak when "dup" fails.


Thanks for the test case. I'll take a look at it and will get back to you.

Stefan, please try with the current cvs. That issue should be fixed now.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to