PHP 4.0 Bug #6979 Updated: HTTP_*_VARS arrays contain little or no data
| From: | Bug Database | Date: | Tue, 03 Oct 2000 11:49:36 +0000 |
| Subject: | PHP 4.0 Bug #6979 Updated: HTTP_*_VARS arrays contain little or no data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34122@lists.php.net to get a copy of this message | ||
ID: 6979
Updated by: waldschrott
Reported By: webmaster@dtechcomputer.com
Status: Analyzed
Bug Type: Documentation problem
Assigned To:
Comments:
SAPI simply means server api, there´s CGI,ISAPI,Apachemod etc. (just call phpinfo() and search for
"server api")
and there are some specialities with each of them (eg. ISAPI does not support getenv() IIRC), but I
don´t know if these issues are thoroughly documented
the varibles_order EGPCS should have no effect on your HTTP_*_VARS arrays, it only influences the
global scope if register_globals=on, please check again if it really does matter which order you´re
using and what are the effects
I can only advise you to read the whole manual and followe discussion on eg.
php-general@lists.php.net to be absolutely enlightened
maybe this topic needs some more documentation, moved to docu bug
Previous Comments:
---------------------------------------------------------------------------
[2000-10-03 07:35:03] webmaster@dtechcomputer.com
WOW?!
That did give me most of variables I expected (though not in the array I expected them in).
I had all of the arrays defined in my php.ini, but in a different order (GPCES instead of EGPCS). I
lieu of a lenghty explaination here, could you point me to some documentation that would explain why
the order of the array assignment would effect the results so dramatically and also a pointer to the
"SAPI" protocol and it;s meaning/affect.
Again, THANX for the enlightenment!!
---------------------------------------------------------------------------
[2000-10-03 07:21:18] webmaster@dtechcomputer.com
oops sorry, shouldn't have hit refresh
---------------------------------------------------------------------------
[2000-10-03 07:18:13] webmaster@dtechcomputer.com
Your script simply displayed exactly what I said above?
---------------------------------------------------------------------------
[2000-10-03 05:29:22] waldschrott@php.net
well, rely on! the variable you allowed in "variables_order" are present AND
depending on the SAPI you´re using some VARS are not available
if you´re using CGI, HTTP_SERVER_VARS will only contain PHP_SELF (most likely on win32)
using ApacheModule HTTP_SERVER_VARS will contain many more
apachemodule: HTTP_SERVER_VARS["SERVER_NAME"]
CGI: HTTP_ENV_VARS["SERVER_NAME"]
again, check your variables_order (to contain EGPCS) and keep in mind which SAPI you´re using
if there are still problems after that, this would qualify as bug
---------------------------------------------------------------------------
[2000-10-03 04:06:06] webmaster@dtechcomputer.com
Your script simply displayed exactly what I said above?
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=6979