#19047 [NEW]: HTTP Post with 1 variable does not behave correctly

From: Date: Thu, 22 Aug 2002 14:21:35 +0000
Subject: #19047 [NEW]: HTTP Post with 1 variable does not behave correctly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17545@lists.php.net to get a copy of this message
From: admin@sportsandbytes.de Operating system: Linux 2.4.7 RedHat 7.2 PHP version: 4CVS-2002-08-22 PHP Bug Type: Unknown/Other Function Bug description: HTTP Post with 1 variable does not behave correctly scriptlet to reproduce problem ##beginscriptlet## <?php echo $action; //echo $secondaction; ?> <html> <head> </head> <body> <form method="post" action="arne.php"> <input type="submit" name="action" value="foo"> <!--input type="hidden" name="secondaction" value="bar"--> </form> </body></html> ##endscriptlet## php configure line: ./configure --with-apxs2=/usr/local/apache2/2.0.40/bin/apxs --with-mysql=/usr/local/mysql/current --with-config-file-path=/etc --enable-dbg=shared --with-dbg-profiler --with-ming=shared,/usr/local/src/lamp2/ming-0.2a Apache 2.0.40 configure line: ./configure --prefix=/usr/local/apache2/2.0.40 --enable-mods-shared=all Description of Problem: One of our developers stumbled upon the folloing on our internal test box running php4 and apache2. When running the provided scriptlet, the output, wich one would expect to be "foo" is "fooaction=foo" Further testing revealed that adding a second field (for example a hidden or text field (uncomment the respective lines in scriptlet to verify)) 'fixes' this problem. Problem was found on apache 2.0.39/php-4.2.1 and contuinues to exist after upgrade to 2.0.40 with todays CVS -- Edit bug report at http://bugs.php.net/?id=19047&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19047&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19047&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19047&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19047&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19047&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19047&r=support Expected behavior: http://bugs.php.net/fix.php?id=19047&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19047&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19047&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19047&r=globals

« previous php.bugs (#17545) next »