ID:               19263
 Comment by:       webmaster at webtechina dot com
 Reported By:      erwin at isiz dot com
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Solaris 8
 PHP Version:      4CVS-2002-09-06
 New Comment:

this bug also occurs on Redhat Linux 8.0 with Apache 2


Previous Comments:
------------------------------------------------------------------------

[2003-03-12 16:57:17] nvainio+phpnet at iki dot fi

For me, the solution was to leave SetOutputFilter and SetInputFilter
as-is and comment out AddType application/x-httpd-php .php instead.
Can't say why but it works for me (Apache 2.0.44 and PHP 4.3.1).

------------------------------------------------------------------------

[2003-01-08 14:21:36] colreid at zasx dot com

People are asking me what I did, so here it is:
My Apache2 package has a directory which it uses for included files
with httpd.conf (the path to this directory in my installation is
/etc/httpd/conf.d).
In there is a file called php.conf, and basically I just commented out
the whole thing except for one line:

LoadModule php4_module modules/libphp4.so

This section here:
#<Files *.php>
#    SetOutputFilter PHP
#    SetInputFilter PHP
#    LimitRequestBody 524288
#</Files>
liked to munge uploads.

Also, in the httpd.conf file I added the line:
AddType application/x-httpd-php .php .html .htm .inc

And that's it.  I restarted apache and uploads decided to be nice.  :)

------------------------------------------------------------------------

[2002-10-17 17:50:39] colreid at zasx dot com

never mind, I found it, in an included file.  Fixed.  You guys rule!

------------------------------------------------------------------------

[2002-10-17 16:31:42] colreid at zasx dot com

I'm running php 4.2.2 and apache 2.0.40 on RedHat 8.0, and I don't have
those SetInputFilter or SetOutputFilter commands in my httpd.conf, yet
I am experiencing the problem originally reported.  Small files work
OK, but larger ones get mangled.  I've been banging my head against the
wall trying to figure out how to fix this, and have noticed others out
there posting to the newsgroups with the same problem, but none of the
suggested solutions work for me.

------------------------------------------------------------------------

[2002-09-10 01:49:05] erwin at isiz dot com

I've found the problem:

don't add SetOutputFilter PHP and SetInputFilter PHP to the Apache
config. Only use AddType application/x-httpd-php .php

Grtz Erwin

------------------------------------------------------------------------

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/19263

-- 
Edit this bug report at http://bugs.php.net/?id=19263&edit=1

Reply via email to