|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-04 02:00 UTC] daniel dot gorski at develnet dot org
root@warpcore:/src/php5/sapi/cli> ./php -v PHP 5.0.0-dev (cli) (built: Mar 4 2003 08:43:46) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies root@warpcore:/src/php5/sapi/cli> ./php -i | head -16 phpinfo() PHP Version => 5.0.0-dev System => Linux warpcore 2.2.20 #12 Mon Feb 10 17:14:10 CET 2003 i686 Build Date => Mar 4 2003 08:39:51 Configure Command => './configure' '--enable-force-cgi-redirect' '--with-mysql=/usr/local/mysql' '--with-config-file-path=../conf' '--with-zlib' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => ../conf PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 90021012 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp, compress.zlib root@warpcore:/src/php5/sapi/cli> ./php <?php error_reporting(E_ALL); print_r($_ENV); ?> Notice: Undefined variable: _ENV in - on line 3 The same goes for $_SERVER (in CGI version). Latest HEAD on RH6.2 Linux. regards dtg PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 07:00:01 2025 UTC |
Please try this one: <?php error_reporting(E_ALL); function foo() { print_r($_SERVER); print_r($_ENV); } foo(); ?> Notice: Undefined variable: _SERVER in - on line 6 Notice: Undefined variable: _ENV in - on line 7 Making $_SERVER etc. explicitly "global" would work, but it's not the intension of superglobals. BTW: the new ini parameter "register_long_arrays" is set to "On" here