ID:               29439
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bmlm at bol dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: WinXP and Linux
 PHP Version:      5.0.0
 New Comment:

Visit http://www.zend.com/support/ for problems with Zend products.


Previous Comments:
------------------------------------------------------------------------

[2004-07-29 03:18:12] bmlm at bol dot com dot br

Description:
------------
The scripts encoded with Zend Encoder in PHP5 disable the global
variables: $_ENV and $_SERVER.

OBS.: Only in encoded scripts. 

Using PHP5 Release and Zend Optimizer 2.5.3

Reproduce code:
---------------
<?
$arr = get_defined_vars();
print_r($arr);
?>

Expected result:
----------------
Array
(
    [GLOBALS] => Array
        (
            [_POST] => Array
                (
                )
            [_GET] => Array
                (
                )
            [_COOKIE] => Array
                (
                )
            [_FILES] => Array
                (
                )
            [_SERVER] => Array
                (
                    [HTTP_ACCEPT_ENCODING] => gzip, deflate
                    [HTTP_ACCEPT_LANGUAGE] => pt-br
                    [HTTP_CONNECTION] => Keep-Alive
                    [HTTP_HOST] => localhost
                    [REDIRECT_STATUS] => 200
                    [ORIG_PATH_INFO] => /index.php
                    [ORIG_SCRIPT_NAME] => /php/php.exe
                    [ORIG_SCRIPT_FILENAME] =>
/projetos/infra/php/php.exe
                    [PHP_SELF] => /index.php
etc...
                )
        )
)


Actual result:
--------------
Array
(
    [GLOBALS] => Array
        (
            [_POST] => Array
                (
                )
            [_GET] => Array
                (
                )
            [_COOKIE] => Array
                (
                )
            [_FILES] => Array
                (
                )
            [arr] => Array
                (
                )
        )
)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29439&edit=1

Reply via email to