From:             bmlm at bol dot com dot br
Operating system: WinXP and Linux
PHP version:      5.0.0
PHP Bug Type:     Scripting Engine problem
Bug description:  Script encoded with Zend Encoder

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 bug report at http://bugs.php.net/?id=29439&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29439&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29439&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29439&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29439&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29439&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29439&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29439&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29439&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29439&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29439&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29439&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29439&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29439&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29439&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29439&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29439&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29439&r=float

Reply via email to