ID: 16915 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Servlet related Operating System: SuSe Linux 7.3 PHP Version: 4.2.0 New Comment:
This doesn't look like a PHP bug. First, you used _SERVLET were you meant to say _SERVER in your example. An understandable mistake for someone who spends a lot of time with Java servlets :). Second, the _GET and _POST arrays were empty for the simple (and correct) reason that you did not have any GET or POST parameters to your request. Third, the _ENV array is empty simply because Java didn't pass any environment values - or at least that would be my suspicion. Check your Runtime.exec() call and the semantics of this call. Previous Comments: ------------------------------------------------------------------------ [2002-04-29 14:53:50] [EMAIL PROTECTED] It seems to be that all super arrays are empty: This script: <?php echo "Globals test: <br>"; if (is_array($_SERVER)) { $size = sizeof($_SERVLET); echo "_SERVER is array $size <br>"; foreach ($_SERVER as $key => $value) { echo "Key: $key value: $value <br>"; } } if (is_array($_GET)) { $size = sizeof($_GET); echo "_GET is array $size <br>"; foreach ($_GET as $key => $value) { echo "Key: $key value: $value <br>"; } } if (is_array($_POST)) { $size = sizeof($_POST); echo "_POST is array $size <br>"; foreach ($_POST as $key => $value) { echo "Key: $key value: $value <br>"; } } if (is_array($_ENV)) { $size = sizeof($_ENV); echo "_ENV is array $size <br>"; foreach ($_ENV as $key => $value) { echo "Key: $key value: $value <br>"; } } echo "PHP_SELF $PHP_SELF <br>"; flush(); ?> as result: Globals test: _SERVER is array 0 _GET is array 0 _POST is array 0 _ENV is array 0 PHP_SELF /examples/php-servlet/test/global.php The arrays are empty. My environment: OS=Linux 2.4.10-4GB on i386 Tomcat 3.2.3 I use only Tomcat as web server without apache. Java version=1.3.1_03 Java vendor=Sun Microsystems Inc. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16915&edit=1