ID: 25231 Updated by: [EMAIL PROTECTED] Reported By: tim at zero-interactive dot com Status: Bogus Bug Type: Variables related Operating System: Win2K Pro PHP Version: 4.3.2 New Comment:
You should also try with PHP 4.3.3 which was released today (yesterday for some). Neither PHP/documentation is wrong. Previous Comments: ------------------------------------------------------------------------ [2003-08-25 19:37:12] tim at zero-interactive dot com No need to get nasty. I wasn't asking for help, was only reporting behaviour which I believe to be incorrect (which is what this site exists for). If you say its a feature, then fine, I'll take your word for it even though none of you have bothered to explain why it is correct. Your "feature" is however inconsistent in the way that it works. If I change the form method to GET instead of POST, then I only get some of the information sent back in the GET array. Namely, only the data in the input fields in the form and not the data in the query part of the action uri. If you have no intention of fixing what I believe to be wrong, then at the very least change the documentation in the manual to reflect this undocumented (that I know of) feature: Except from online manual (Predefined variables page): $_GET Variables provided to the script via HTTP GET. Analogous to the old $HTTP_GET_VARS array (which is still available, but deprecated). $_POST Variables provided to the script via HTTP POST. Analogous to the old $HTTP_POST_VARS array (which is still available, but deprecated). You will note that it says "provided to the script via HTTP GET". I just proved to you that you can get data in the $_GET array with a HTTP POST as demonstrated by the headers I captured. This means that either the engine is wrong or the documentation is wrong. Which one is it? ------------------------------------------------------------------------ [2003-08-25 18:59:43] [EMAIL PROTECTED] This is called FEATURE..it's definately NOT bug. Please ask support questions elsewhere.. ------------------------------------------------------------------------ [2003-08-25 18:54:16] tim at zero-interactive dot com I dont understand how this can be correct behaviour. There is never a GET header sent with the request, so this means that the $_GET array should not be populated. If you have a close look at the HTTP headers that I've captured, there is only a POST request header sent and not a GET request header. ------------------------------------------------------------------------ [2003-08-25 18:47:17] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php This is the correct behaviour. ------------------------------------------------------------------------ [2003-08-25 12:24:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25231 -- Edit this bug report at http://bugs.php.net/?id=25231&edit=1