>Number: 2429 >Category: mod_cgi >Synopsis: Standard error from scripts is not making it into error.log >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jun 12 09:10:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.0 >Environment: Windows NT Server 4.0, SP3 Visual C++ 5.0 >Description:
In my CGI Perl scripts, the output of warn() does not make it into the error.log file. This was exhibit3ed under Apache 1.3.0 that I built from source with the win32_mod_rewrite.patch applied. Prior to installing 1.3.0, I was testing with 1.3b6. Under the self-installing binary release of Apache 1.3b6, stderr is correctly sent to error_log. I have not tested this with the 1.3b7 release. >How-To-Repeat: Here is the script I am testing this with: #! E:\PERL\5.00464\bin\MSWin32-x86\perl.exe # # Use the CGI module and import all standard functions. # use CGI qw(:standard); # Print the HTTP header. # print header(); # Use the warn() function to display the error message. # warn "Error message!"; # Print a greeting. # print "<BR>Howdy, World!"; >Fix: I am afraid that I can offer no suggestions. I did a diff of mod_cgi.c between 1.3.0 and 1.3b6, but the solution was not obvious to me. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]
