|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-30 09:37 UTC] ms at ecs dot soton dot ac dot uk
When submitting a form with one field via post the variable contents gets mangled...
*** foo.html ***
<form action="test.php" method="post">
Test: <input type="text" name="id" value="bar">
<input type="submit">
</form>
*** test.php ***
<?php print_r($_POST); ?>
*** output ***
Array
(
[id] => barid=bar
)
This bug can also be detected up by submitting the page
to a phpinfo().
Compiled under Tru64 5.1 using both Compaq and Gnu cc & make. Have tested using PHP 4.2.2 / Apache 2.0.39 and Apache 2.0.40 / PHP 4.3.0-Dev (200207100600 snapshot).
Configure Line:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
Bug appears to be limited to Tru64, as if I POST the data to a separate linux machine running 4.2.2/2.0.39 then it works fine.
If I have more than one field in the form then everything is fine, or if I use GET instead of POST then it also works.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
I can't reproduce this problem using identical RPMs on Red Hat Linux 8.0 - this bug seems hard to trigger. hholzgra@php.net - any further insight would be appreciated. I can't find anything on the CVS logs about fixes for Tru64. There is one fix to main/php_variables.c: 2002-09-07 Yasuo Ohgaki <yohgaki@ohgaki.net> ... * main/php_variables.c: Fixed POST/GET/COOKIE var handling but this seems to concern NUL-terminated strings in field values, unles I'm mistaken.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 (?) :)The default httpd configuration on RH8.0 use <Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> so is this RedHat fault? I replace above lines with AddType application/x-httpd-php .php and it works!!! should tell redhat about this