|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-29 04:42 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 07:00:01 2025 UTC |
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 ( ) ) )