#29439 [Opn->Bgs]: Script encoded with Zend Encoder

From: Date: Thu, 29 Jul 2004 02:42:48 +0000
Subject: #29439 [Opn->Bgs]: Script encoded with Zend Encoder
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63721@lists.php.net to get a copy of this message
ID: 29439 Updated by: edink@php.net 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

« previous php.bugs (#63721) next »