ID: 20356 User updated by: [EMAIL PROTECTED] -Summary: PHP delivers sourcecode Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Open -Bug Type: *Web Server problem +Bug Type: Apache2 related -Operating System: linux 2.4.19 +Operating System: linux PHP Version: 4CVS-2002-11-11 New Comment:
So now i've setup a 'test-suite'... HTTP-Version: http://xmail.linux-de.org/test/ HTTPS-Version: https://mail.linux-de.org/test/ There are php.html, perl.html and ruby.html... all cgi-scripts printing the ENV-Vars in a frameset. PHP will fail nearly every time in one frame at minimum, the others (perl and ruby) work nearly every time correct (it's absolutely acceptable). So now tell me, is it an PHP-Problem or Apache2? (I myself think again it's php). Previous Comments: ------------------------------------------------------------------------ [2002-11-13 08:53:18] [EMAIL PROTECTED] I've to excuse. Recently i got the same problem with one of my ruby-scripts, i'm sorry for the rebukes. Best regards, simon ------------------------------------------------------------------------ [2002-11-13 08:02:06] [EMAIL PROTECTED] I've posted it to the apache-mailinglist... i need a solution, so i've to ask around :) If i've new informations, i'll post'em here. ------------------------------------------------------------------------ [2002-11-11 12:20:42] [EMAIL PROTECTED] Which one? PHP or another one? Ther error occours even if i let the script print "hello world". It's really boring... i only want to run php in a safe way... and because the perchild-mpm for apache2 isn't working yet, i have to use suexec, so every script runs with the right permission, that's the only reason why i'm using the cgi-version of php. If there's another safe way, i'll take a look at it. ------------------------------------------------------------------------ [2002-11-11 11:13:45] [EMAIL PROTECTED] Your CGI script does not send the HTTP/1.1 200 OK response, the web server does. No matter what the CGI script returns, the server cannot legally send anything before that header. If it does then the server is broken by definition. There is just no arguing that point. But what exactly does your cgi script generate when you run it from the command line? ------------------------------------------------------------------------ [2002-11-11 11:10:07] [EMAIL PROTECTED] Same for PHP i would say, but that doesn't help now. But the CGI has to send the header itself, so i think it is logical that apache can't be the source of the problem. My perl scripts work fine with SSL, python and ruby are also doing the right output, only php doesn't, so why should i believe that it's an apache2 problem? Or are you just pushing the blame on someone else? Furthermore i've got the same problems with apache1, as others too. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20356 -- Edit this bug report at http://bugs.php.net/?id=20356&edit=1