Bug #11430 Updated: PHP-CGI executing PHP-CGI thru Apache
| From: | allanh at netcentralen dot dk | Date: | Thu, 04 Jul 2002 05:15:02 +0000 |
| Subject: | Bug #11430 Updated: PHP-CGI executing PHP-CGI thru Apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13076@lists.php.net to get a copy of this message | ||
ID: 11430
Updated by: allanh@netcentralen.dk
Reported By: allanh@netcentralen.dk
Status: Verified
Bug Type: Program Execution
Operating System: Linux 2.4 (RH7.3 upd kernel)
PHP Version: 4.3.0-dev
New Comment:
yes
Previous Comments:
------------------------------------------------------------------------
[2002-07-03 19:10:37] sniper@php.net
I tried it too..and almost had my server crashed.
I guess the php binary used in httpd.conf is same as
in the 'test' script?
------------------------------------------------------------------------
[2002-07-03 08:29:33] allanh@netcentralen.dk
When I reported the bug I used the latest version.
I just tested again and this now it no longer terminates by itself. It
crashed the server. Error messages on the screen saying out of memory
-- killed httpd.
It is a different server.
------------------------------------------------------------------------
[2002-07-03 07:26:34] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2001-06-12 13:12:37] sniper@php.net
I can reproduce this with 4.0.6RC3 too.
------------------------------------------------------------------------
[2001-06-12 06:49:32] allanh@netcentralen.dk
PHP is run as a CGI script. Error does not occur when PHP is run as
Apache module.
I have reproduced error on three different systems.
file: test.php
=== cut ===
<?
echo "Ho! ";
echo
./test;
?>
=== uncut ===
file: test
=== cut ===
#!/usr/local/bin/php -q
<?
echo "Ha!";
?>
=== uncut ===
When running
php -q < test.php.
output is correct: "Ho! Ha!"
When requesting test.php through apache, output is as follows:
Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho! X-Powered-By: PHP/4.0.5 Content-type: text/html Ho!
X-Powered-By: PHP/4.0.5 Content-type: text/html Ho! X-Powered-By:
PHP/4.0.5 Content-type: text/html Ho! X-Powered-By: PHP/4.0.5
Content-type: text/html Ho! X-Powered-By: PHP/4.0.5 Content-type:
text/html Ho!
---------------------------
PHP configure string:
./configure -with-mysql --enable-force-cgi-redirect --with-gdbm
--enable-ftp
php.ini is empty.
Apache version: 1.3.19 (also tested 1.3.9)
Also tested FreeBSD 4.3 with Apache 1.3.19, same problem.
Also tested PHP 4.0.0 and 4.0.2, same problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11430&edit=1