From: grassgrr at gmail dot com Operating system: Linux PHP version: 5.4.14 Package: Apache related Bug Type: Bug Bug description:POST variables not received by custom 404
Description: ------------ I am attempting to catch variables submitted with a form via POST method on a custom 404 page on an apache server. I have seen that IIS has a similar issue reported in bug #38094 that indicate the problem there is one of Microsoft's IIS but this issue is occurring on a LAMP stack so I am not completely sure if it is caused by PHP or a "feature" in Apache that is also in IIS. Test script: --------------- // note that this test script is similar to that of bug #38094 form.php: <form method="post" action="missingpage.php"> <input name="test" type="text" value="Meow"> <input type="submit"> </form> Custom 404 page: 404.php: <?php print_r($GLOBALS); ?> Expected result: ---------------- I would expect to see all variables that exist printed including one post variable named "test" with the value of "Meow" print on the custom 404 page. Actual result: -------------- All variables except for the Form variables print. Also $_SERVER['QUERY_STRING'] does not contain the query string used. -- Edit bug report at https://bugs.php.net/bug.php?id=64672&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64672&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64672&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64672&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64672&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64672&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64672&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64672&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64672&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64672&r=support Expected behavior: https://bugs.php.net/fix.php?id=64672&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64672&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64672&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64672&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64672&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64672&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64672&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64672&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64672&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64672&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64672&r=mysqlcfg