#23401 [NEW]: $_POST, $_GET empty
| From: | marten dot wibom at seb dot se | Date: | Tue, 29 Apr 2003 08:47:00 +0000 |
| Subject: | #23401 [NEW]: $_POST, $_GET empty | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38695@lists.php.net to get a copy of this message | ||
From: marten dot wibom at seb dot se
Operating system: sun solaris 7
PHP version: 4.3.2RC2
PHP Bug Type: Variables related
Bug description: $_POST, $_GET empty
i'm having trouble with $_POST, $_GET superglobals...as well with
$HTTP_POST_VARS and $HTTP_GET_VARS. they're empty, not even initialized.
from what i can see is that $_SERVER is the only superglobal working, for
example GET information is stored in $_SERVER[QUERY_STRING].
i've tested 4.3.2-RC2, 4.3.2-RC1, 4.3.1 and 4.2.2 with no difference.
configured with "--with-oracle=... --with-oci8=... --with-apxs=...".
i use apache 1.3.27 on sun solaris 7.
i use a testscript last in this mail that get theese results:
http://www.teamless.com/seb/result-post.txt
http://www.teamless.com/seb/result-get.txt
with theese configurations:
http://www.teamless.com/seb/httpd.conf
http://www.teamless.com/seb/php.ini
thank you for your help!
---testscript---
#!/usr/local/bin/php
<?php
html_header(); /* Content-type: plain/html */
html_start(); /* html header */
phpinfo();
$new_action = $_GET["action"];
$new_test = $_POST["test"];
$new_srv = $_SERVER['SERVER_NAME'];
$old_test = $HTTP_POST_VARS["test"];
$old_action = $HTTP_GET_VARS["action"];
$req_action = $_REQUEST["action"];
$req_test = $_REQUEST["test"];
$dir_test = $test;
$meth = $_SERVER['REQUEST_METHOD'];
import_request_variables( "gP", "imp_" );
print( "new_action=$new_action<BR>\n" );
print( "new_test=$new_test<BR>\n" );
print( "new_srv=$new_srv<BR>\n" );
print( "old_action=$old_action<BR>\n" );
print( "old_text=$old_test<BR>\n" );
print( "req_action=$req_action<BR>\n" );
print( "req_test=$req_test<BR>\n" );
print( "action=$action<BR>\n" );
print( "dir_test=$test<BR>\n" );
print( "imp_action=$imp_action<BR>\n" );
print( "imp_text=$imp_test<BR>\n" );
print( "method=$meth<BR>\n" );
print( "raw=$HTTP_RAW_POST_VARS<BR>" );
print( "argc=$_SERVER[QUERY_STRING]<BR>" );
print( "argc=$_SERVER[DOCUMENT_ROOT]<BR>" );
print( "argc=$_SERVER[SERVER_NAME]<BR>" );
print_r( $_POST );
print( "<BR>" );
?>
<FORM METHOD="post" ACTION="www_resources.php">
test:<INPUT TYPE="text" NAME="test" VALUE="testtext"
SIZE="60">
<INPUT TYPE="submit" NAME="go" VALUE="Test it!">
</FORM>
<FORM METHOD="get" ACTION="www_resources.php">
test:<INPUT TYPE="text" NAME="test" VALUE="testtext"
SIZE="60">
<INPUT TYPE="submit" NAME="go" VALUE="Test it!">
</FORM>
<?php
print( "<A
HREF=\"www_resources.php?action=mupp&test=blupp\">Link</A>" );
html_stop(); /* html footer */
?>
--
Edit bug report at http://bugs.php.net/?id=23401&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23401&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23401&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23401&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23401&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23401&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23401&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23401&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23401&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23401&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23401&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23401&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23401&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23401&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23401&r=gnused