#19263 [Com]: huge POST data corrupt

2003-03-12 Thread nvainio+phpnet at iki dot fi
 ID:   19263
 Comment by:   nvainio+phpnet at iki dot fi
 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:

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).


Previous Comments:


[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



[2002-09-06 08:03:33] erwin at isiz dot com

Hi,

I've gave this the summary huge POST data, because I've found two
bugs, which are, in my opinion, related.

The first one: 
If I upload a file using the file upload example from the php website,
all I get are corrupted files. The resulting files are about two times
bigger then the input files. The amount of bytes on the output varies a
little bit. This does not happens with files of 10 Kb, but different
files which vary from 60-120 Kb got corrupted.

The second one:
If I post text in a textarea, nothing goes wrong. But if I post a lot
of text in a textarea, parts of the text is copied into the text
itself. For instance, I copied the source of http://www.php.net (normal
HTML source) in a textarea. Posted the data to info.php (this script
only has the phpinfo() function, so I can see all data). The sourcecode
of the php website is 376 lines long. The result is about 734 lines.
This is around twice as big (The site looks really weird ;-))

Again, I think these two are related. They only occured in conjunction
with Apache 2.0.40 (didn't test other Apache 2 releases). I'm sure that
the bug is a PHP bug, because Perl code doesn't have this problem (but
I rather use PHP)
I did test it with php-4.2.2, which gave me the same results.

PHP Configure line:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-track-vars'
'--with-openssl=/usr/local/ssl/' '--with-zlib' '--enable-ftp'
'--with-gd' '--enable-gd-native-ttf' '--with-pdflib'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--prefix=/usr/local/httpd/php'
'--with-zlib-dir=/usr' '--with-apxs2=/usr/local/httpd/bin/apxs'

Greets,
Erwin




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



#21509 [Com]: Duplication when creating a new Table

2003-02-20 Thread nvainio+phpnet at iki dot fi
 ID:   21509
 Comment by:   nvainio+phpnet at iki dot fi
 Reported By:  marcus at rtt dot co dot za
 Status:   Bogus
 Bug Type: *General Issues
 Operating System: RedHat 8
 PHP Version:  4.2.2
 New Comment:

phpMyAdmin people think this is a problem with PHP. See:

http://sourceforge.net/forum/message.php?msg_id=1607618
http://sourceforge.net/forum/message.php?msg_id=1825641


Previous Comments:


[2003-01-08 00:58:41] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Not a problem with PHP, report to the phpMyAdmin guys.

Derick



[2003-01-08 00:49:58] marcus at rtt dot co dot za

I'm Not to sure if this is a problem with phpMyAdmin or if this is php
problem
Running 
php-4.2.2-8.0.5 
httpd-2.0.40-8
mysql-3.23.52-3
RedHat 8

php configure line reads
./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl'
'--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf'
'--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-regex=system' '--with-xml'
'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp'
'--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear'
'--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack'
'--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal'
'--with-apxs2=/usr/sbin/apxs'


Which is standard install with RH 8

and as soon as try to create a new table with phpMyAdmin 2.3.0

This is the SQL it tries to run. NOTE it duplicates on line 5,6,7
1 CREATE TABLE `wt_test` ( 

2 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
3 `name` VARCHAR( 50 ) ,
4 `what` VARCHAR( 50 ) ,
5 `id` INT NOT NULL AUTO_INCREMENT,
6 `name` VARCHAR( 50 ) ,
7 `what` VARCHAR( 50 ) 
8 ) 

and all i wanted was line 1,2,3
Regards
Marcus




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