Hello all. I've looked in various mod_perl FAQs but haven't seen the
answer to what seems to be a (minor) bug in Apache::Registry.

It seems that when PerlSendHeader is On if I haven't yet done a
print "Content-type: text/html\n\n"

but I want to print a comment into the weblog by doing a
print STDERR "I got value $value.\n"

It seem Apache::Registry will go ahead and print out the default
headers, causing my "Content-type: text/html" to show up ad verbatim
on the rendered page: not the desired effect!

While I understand that it would make sense for Apache::Registry
to print out the headers if I start spewing out text to STDOUT,
it is, IMHO, not a good behavior for it to do the same when I write
to STDERR.

Has this been reported like a kajillion times (in which case someone
will politely reach their virtual hand out and smack me upside the
head) or is this a sufficiently out-of-the-way sort of error that
people haven't reported it yet? At any rate, I'd just be tickled
pink if someone fixed it.

        Yours,
         David Weekly

Reply via email to