PHP 4.0 Bug #6979 Updated: HTTP_*_VARS arrays contain little or no data

From: Date: Tue, 03 Oct 2000 11:35:03 +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-34120@lists.php.net to get a copy of this message
ID: 6979 User Update by: webmaster@dtechcomputer.com Old-Status: Closed Status: Open Bug Type: Scripting Engine problem Description: HTTP_*_VARS arrays contain little or no data 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!! Previous Comments: --------------------------------------------------------------------------- [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? --------------------------------------------------------------------------- [2000-10-03 02:41:38] waldschrott@php.net check your php.ini setting "variables_order" and check some configurations, to properly see what arrays are present in the current page try this snipplet <?php function test() { var_dump($GLOBALS); } test(); ?> --------------------------------------------------------------------------- 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

« previous php.dev (#34120) next »