php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29439 Script encoded with Zend Encoder
Submitted: 2004-07-29 03:18 UTC Modified: 2004-07-29 04:42 UTC
From: bmlm at bol dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0 OS: WinXP and Linux
Private report: No CVE-ID: None
 [2004-07-29 03:18 UTC] 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
                (
                )
        )
)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-29 04:42 UTC] edink@php.net
Visit http://www.zend.com/support/ for problems with Zend products.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 05:01:31 2024 UTC