#18648 [Opn->Fbk]: Single entry form POST gives incorrect variable content

From: Date: Tue, 04 Feb 2003 21:05:49 +0000
Subject: #18648 [Opn->Fbk]: Single entry form POST gives incorrect variable content
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32111@lists.php.net to get a copy of this message
 ID:               18648
 Updated by:       moriyoshi@php.net
 Reported By:      ms@ecs.soton.ac.uk
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: All
 PHP Version:      5CVS-2003-01-29 (dev) / 4CVS-20020121 (stable)
 New Comment:

[To anyone who experiences this trouble]

Are you sure that your httpd.conf has just A SINGLE KIND OF PHP RELATED
DIRECTIVE?

Then try grep "\(OutputFilter\|InputFilter\|AddType\)" < httpd.conf or
whatsoever.

# bad example (a)
AddInputFilter PHP php
AddOutputFilter PHP php

...

AddType x-httpd-php .php

# bad example (b)
SetInputFilter PHP
SetOutputFilter PHP

...

AddType x-httpd-php .php

# not bad (c)
AddInputFilter PHP php
AddOutputFilter PHP php

# good (d)
AddType x-httpd-php .php



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

[2003-02-04 09:16:42] r.cruces@alcorce.com

Tested in RH8.0 + PHP 4.2.2 + Apache 2.

- Is ok when you add the 'enctype="multipart/form-data"' propety to the
form tag.
- Is ok when you send using GET method instead POST.
- Is ok when you send more than one field: if you have a text and a
button, if you send it pressing enter only the text send and the
problem occurs. When you press the button, text and button are send and
the problem not occur.
ciao.

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

[2003-02-03 12:36:09] sniper@php.net

I can _NOT_ reproduce this with Apache 2.0.44 and PHP 4.3.1-dev..


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

[2003-02-03 11:55:47] rep@devdomain.com

array(4) {
  [0]=>
  string(1) "1"
  [1]=>
  string(1) "2"
  [2]=>
  string(1) "1"
  [3]=>
  string(1) "2"
}

From the latest snap's (php4-STABLE, php5). cvs commit (?) :)

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

[2003-01-31 19:52:37] marvel@herzen.spb.ru

Have Apache/2.0.44 (RedHat8.0 (LastUpdates) mod_ssl/2.0.44
OpenSSL/0.9.6b PHP/4.3.0

Starting Apache answers - 
[root@delta bin]# httpd -DSSL
httpd: module "/usr/src/php-4.3.0/sapi/apache2filter/sapi_apache2.c" is
not comp
atible with this version of Apache.
Please contact the vendor for the correct version.

Where troubles ?

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

[2003-01-30 03:52:45] moriyoshi@php.net

rep@devdomain.com, Thank you for the info!

Okay, updating version.


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

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

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



Thread (45 messages)

« previous php.bugs (#32111) next »