|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-18 03:02 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
<? abc123 (); function abc123 () { $name = "_SERVER"; printf ("%s<br>", ${$name}["SERVER_NAME"]); } ?> The _SERVER autoglobal array is not accessible through a variable variable. The above script gives the following error: Notice: Undefined variable: _SERVER in /usr/local/apache/site/htdocs/zzz.php on line 7 When the _SERVER array is accessed directly (not through a variable variable) everything works correctly. Here is the configure line: ./configure --with-pgsql --with-apache=../apache-1.3 --enable-track-vars --with-pfpro=/usr/local/src/payflowpro/linux --with-imap=/usr/local/src/imap-2003.DEV.SNAP-0304071905 --with-imap-ssl=/usr/include/openssl --without-pear