From: john at odlin dot co dot uk Operating system: Linux RH PHP version: 4.3.6 PHP Bug Type: HTTP related Bug description: POST variables not set
Description: ------------ POST variables don't get set if get called from a page that includes http:// in the action but GET works fine. Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.3.6 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 using recommended ini file. './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gettext=/usr' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-ttf' '--with-db' '--with-gdbm' '--enable-mbstring' '--enable-wddx=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-pgsql=shared' '--with-pdflib=shared' '--enable-inline-optimization' '--with-openssl' '--enable-bcmath' '--enable-sockets' Reproduce code: --------------- <FORM ACTION="" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> <FORM ACTION="/index.php" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> <FORM ACTION="http://www.domain.com/index.php" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> The third example does not work. Expected result: ---------------- Array ( [HTTP_POST_VARS] => Array ( [transId] => 1 [submit] => Submit ) [_POST] => Array ( [transId] => 1 [submit] => Submit ) ... Actual result: -------------- Array ( [HTTP_POST_VARS] => Array ( ) [_POST] => Array ( ) ... -- Edit bug report at http://bugs.php.net/?id=28514&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28514&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28514&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28514&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28514&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28514&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28514&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28514&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28514&r=support Expected behavior: http://bugs.php.net/fix.php?id=28514&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28514&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28514&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28514&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28514&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28514&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28514&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28514&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28514&r=float