|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-08 05:26 UTC] oliver dot drexler at gmx dot net
Since upgrading to 4.2.0 the variables from forms/URLs are not registered anymore. for example URL: http://somehost/test.php?xy=12345&xyz=abc Result: The $_GET, $_POST, $_REQUEST, $HTTP_*_VARS arrays are all empty. When switching back to 4.1.1 WITH THE SAME PHP.INI FILE (the one that came with 4.2.0) all works fine. Switching back to 4.2.0, arrays are empty. System: WinXP Pro Xitami v2.5b5 PHP 4.2.0, precompiled version from PHP.NET register_globals OFF (need it that way for security reasons) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Using 4.4.0-dev as a CGI, I am seeing this as well. Dumping the various variables indicates this is a PHP bug: From var_dump($GLOBALS): ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(31) "url=foo&title=bar&blog_name=bag" ["REQUEST_URI"]=> string(53) "/blog/trackbackto.cgi?url=foo&title=bar&blog_name=bag" ["HTTP_POST_VARS"]=> array(0) { } ["_POST"]=> array(0) { } ["HTTP_GET_VARS"]=> array(0) { } ["_GET"]=> array(0) { } I am using PHP built from CVS as of some time during 4.4.0-dev, on RedHat Linux 7.2, with Apache 1.3.27. I am now rebuilding PHP from CVS HEAD to see if there's any change.Curiously enough, and I don't know if it's related, but my Header('content-type: text/xml') wasn't processed. I had to explicitly 'print "content-type: text/xml\r\n\r\n"' to get the header emitted. Right now CVS HEAD isn't building with a '/ext/standard/basic_functions.c:2827: `ZEND_INI_PARSER_POP_ENTRY' undeclared (first use in this function)' but I'm working on that. (Last time this happened I had to re-checkout the source tree, which indicates that 'make clean' is missing something..)