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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bmlm at bol dot com dot br
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 21:01:33 2025 UTC