From: matt at atopia dot net Operating system: FreeBSD 4.10 PHP version: 4.3.7 PHP Bug Type: Variables related Bug description: Variables not being passed on form post
Description: ------------ This was originally posted as a mozilla firefox bug, and left open for a good 9 months until today... http://bugzilla.mozilla.org/show_bug.cgi?id=215479 Seems it has been described as a bug in PHP... Originally, the problem I was experiencing last September was the following: After HTTP authentication, both variables (PHP_AUTH_USER and REMOTE_USER) would be set until I submitted a form that used method=post. After that, neither variable would be set until I visited a page using GET (not post). Then, both variables would reset themselves (I assume because the browser posts the username/pass each request with HTTP authentication). Originally, the problem occured with HTTP and HTTPS, so I have setup two different test cases. As of now, I am currently experiencing this problem still, but only with the REMOTE_USER variable. A new version of PHP seems to have fixed the PHP_AUTH_USER problem. (this will all be shown in the test case). Reproduce code: --------------- http://www.atopia.net/test/mozbug215479/step1.php https://secure.webaries.com/atopia/test/mozbug215479/step1.php User/Pass: test/test Source code is available for both of the files by replacing .php with .source -- Edit bug report at http://bugs.php.net/?id=28867&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28867&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28867&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28867&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28867&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28867&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28867&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28867&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28867&r=support Expected behavior: http://bugs.php.net/fix.php?id=28867&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28867&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28867&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28867&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28867&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28867&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28867&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28867&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28867&r=float
