cvs: phpdoc-zh /appendices reserved.xml

From: Date: Wed, 14 Aug 2002 08:04:32 +0000
Subject: cvs: phpdoc-zh /appendices reserved.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-306@lists.php.net to get a copy of this message
class007 Wed Aug 14 04:04:32 2002 EDT Modified files: /phpdoc-zh/appendices reserved.xml Log: finished

Index: phpdoc-zh/appendices/reserved.xml diff -u phpdoc-zh/appendices/reserved.xml:1.2 phpdoc-zh/appendices/reserved.xml:1.3 --- phpdoc-zh/appendices/reserved.xml:1.2 Sun Aug 11 04:06:59 2002 +++ phpdoc-zh/appendices/reserved.xml Wed Aug 14 04:04:32 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: class007 $ --> <!-- EN-Revision: 1.23 Maintainer: class007 Status: ready --> @@ -525,337 +525,213 @@ </note> <simpara> - These variables are imported into PHP's global namespace from the - environment under which the PHP parser is running. Many are - provided by the shell under which PHP is running and different - systems are likely running different kinds of shells, a - definitive list is impossible. Please see your shell's - documentation for a list of defined environment variables. + ÔÚ½âÎöÆ÷ÔËÐÐʱ£¬ÕâЩ±äÁ¿´Ó»·¾³±äÁ¿×ª±äΪ PHP È«¾Ö±äÁ¿Ãû³Æ¿Õ¼ä(namespace)¡£ËüÃÇÖеÄÐí¶à¶¼ÊÇÓÉ PHP ËùÔËÐеÄϵͳ¾ö¶¨¡£ÍêÕûµÄÁбíÊDz»¿ÉÄܵġ£Çë²é¿´ÄúϵͳµÄÎĵµÒÔÈ·¶¨ÆäÌØ¶¨µÄ»·¾³±äÁ¿¡£ </simpara> <simpara> - Other environment variables include the CGI variables, placed - there regardless of whether PHP is running as a server module or - CGI processor. + ÆäËü»·¾³±äÁ¿£¨°üÀ¨ CGI ±äÁ¿£©£¬ÎÞÂÛ PHP ÊÇÒÔ·þÎñÆ÷Ä£¿é»òÊÇÒÔ CGI ´¦Àí·½Ê½ÔËÐУ¬¶¼ÔÚÕâÀïÁгöÁË¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_ENV;</command> to access it within functions or methods, as - you do with <varname>$HTTP_ENV_VARS</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_ENV;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_ENV_VARS</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_ENV_VARS</varname> contains the same initial - information, but is not an autoglobal. (Note that - <varname>HTTP_ENV_VARS</varname> and <varname>$_ENV</varname> - are different variables and that PHP handles them as such) + <varname>$HTTP_ENV_VARS</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡££¨×¢Ò⣺ <varname>HTTP_ENV_VARS</varname> ºÍ <varname>$_ENV</varname> ÊDz»Í¬µÄ±äÁ¿£¬PHP ´¦ÀíËüÃǵķ½Ê½²»Í¬¡££© </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_ENV</varname> and <varname>$HTTP_ENV_VARS</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_ENV</varname> ºÍ <varname>$HTTP_ENV_VARS</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.cookies"> - <title>HTTP Cookies: <varname>$_COOKIE</varname></title> + <title>HTTP Cookies£º<varname>$_COOKIE</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_COOKIE_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_COOKIE_VARS</varname>¡£ </simpara> </note> <simpara> - An associative array of variables passed to the current script - via HTTP cookies. Automatically global in any scope. + ͨ¹ý HTTP cookies ´«µÝµÄ±äÁ¿×é³ÉµÄÊý×é¡£ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_COOKIE;</command> to access it within functions or methods, as - you do with <varname>$HTTP_COOKIE_VARS</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_COOKIE;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_COOKIE_VARS</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_COOKIE_VARS</varname> contains the same initial - information, but is not an autoglobal. (Note that - <varname>HTTP_COOKIE_VARS</varname> and <varname>$_COOKIE</varname> - are different variables and that PHP handles them as such) + <varname>$HTTP_COOKIE_VARS</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡££¨×¢Ò⣺ <varname>HTTP_COOKIE_VARS</varname> ºÍ <varname>$_COOKIE</varname> ÊDz»Í¬µÄ±äÁ¿£¬PHP ´¦ÀíËüÃǵķ½Ê½²»Í¬¡££© </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_COOKIE</varname> and <varname>$HTTP_COOKIE_VARS</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_COOKIE</varname> ºÍ <varname>$HTTP_COOKIE_VARS</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.get"> - <title>HTTP GET variables: <varname>$_GET</varname></title> + <title>HTTP GET ±äÁ¿£º<varname>$_GET</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_GET_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_GET_VARS</varname>¡£ </simpara> </note> <simpara> - An associative array of variables passed to the current script - via the HTTP GET method. Automatically global in any scope. + ͨ¹ý HTTP GET ·½·¨´«µÝµÄ±äÁ¿×é³ÉµÄÊý×é¡£ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_GET;</command> to access it within functions or methods, as - you do with <varname>$HTTP_GET_VARS</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_GET;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_GET_VARS</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_GET_VARS</varname> contains the same initial - information, but is not an autoglobal. (Note that - <varname>HTTP_GET_VARS</varname> and <varname>$_GET</varname> - are different variables and that PHP handles them as such) + <varname>$HTTP_GET_VARS</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡££¨×¢Ò⣺ <varname>HTTP_GET_VARS</varname> ºÍ <varname>$_GET</varname> ÊDz»Í¬µÄ±äÁ¿£¬PHP ´¦ÀíËüÃǵķ½Ê½²»Í¬¡££© </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_GET</varname> and <varname>$HTTP_GET_VARS</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_GET</varname> ºÍ <varname>$HTTP_GET_VARS</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.post"> - <title>HTTP POST variables: <varname>$_POST</varname></title> + <title>HTTP POST ±äÁ¿£º<varname>$_POST</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_POST_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_POST_VARS</varname>¡£ </simpara> </note> <simpara> - An associative array of variables passed to the current script - via the HTTP POST method. Automatically global in any scope. + ͨ¹ý HTTP POST ·½·¨´«µÝµÄ±äÁ¿×é³ÉµÄÊý×é¡£ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_POST;</command> to access it within functions or methods, as - you do with <varname>$HTTP_POST_VARS</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_POST;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_POST_VARS</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_POST_VARS</varname> contains the same initial - information, but is not an autoglobal. (Note that - <varname>HTTP_POST_VARS</varname> and <varname>$_POST</varname> - are different variables and that PHP handles them as such) + <varname>$HTTP_POST_VARS</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡££¨×¢Ò⣺ <varname>HTTP_POST_VARS</varname> ºÍ <varname>$_POST</varname> ÊDz»Í¬µÄ±äÁ¿£¬PHP ´¦ÀíËüÃǵķ½Ê½²»Í¬¡££© </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_POST</varname> and <varname>$HTTP_POST_VARS</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_POST</varname> ºÍ <varname>$HTTP_POST_VARS</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.files"> - <title>HTTP File upload variables: <varname>$_FILES</varname></title> + <title>HTTP ÎļþÉÏ´«±äÁ¿£º<varname>$_FILES</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_POST_FILES</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_POST_FILES</varname>¡£ </simpara> </note> <simpara> - An associative array of items uploaded to the current script - via the HTTP POST method. Automatically global in any scope. + ͨ¹ý HTTP POST ·½·¨´«µÝµÄÒÑÉÏ´«ÎļþÏîÄ¿×é³ÉµÄÊý×é¡£ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_FILES;</command> to access it within functions or methods, as - you do with <varname>$HTTP_POST_FILES</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_FILES;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_POST_FILES</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_POST_FILES</varname> contains the same - information, but is not an autoglobal. + <varname>$HTTP_POST_FILES</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_FILES</varname> and <varname>$HTTP_POST_FILES</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_FILES</varname> ºÍ <varname>$HTTP_POST_FILES</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.request"> - <title>Request variables: <varname>$_REQUEST</varname></title> + <title>Request ±äÁ¿£º<varname>$_REQUEST</varname></title> <note> <simpara> - Introduced in 4.1.0. There is no equivalent array in earlier - versions. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ã»Óеȼ۵ÄÊý×é¡£ </simpara> </note> <simpara> - An associative array consisting of the contents of - <varname>$_GET</varname>, <varname>$_POST</varname>, - <varname>$_COOKIE</varname>, and <varname>$_FILES</varname>. + ÓÉ <varname>$_GET</varname>£¬<varname>$_POST</varname>£¬<varname>$_COOKIE</varname>, ºÍ <varname>$_FILES</varname> ÄÚÈݵÄÈ«²¿×é³ÉµÄÊý×é¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_REQUEST;</command> to access it within functions or methods. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_REQUEST;</command> À´·ÃÎÊËü¡£ </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_REQUEST</varname> array. For related information, see - the security chapter titled <link - linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_REQUEST</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.session"> - <title>Session variables: <varname>$_SESSION</varname></title> + <title>Session ±äÁ¿£º<varname>$_SESSION</varname></title> <note> <simpara> - Introduced in 4.1.0. In earlier versions, use - <varname>$HTTP_SESSION_VARS</varname>. + ÔÚ PHP 4.1.0 ¼°ÒÔºó°æ±¾Ê¹Óá£Ö®Ç°µÄ°æ±¾£¬Ê¹Óà <varname>$HTTP_SESSION_VARS</varname>¡£ </simpara> </note> <simpara> - An associative array containing session variables available to - the current script. See the <link linkend="ref.session">Session - functions</link> documentation for more information on how this - is used. - </simpara> + °üº¬µ±Ç°½Å±¾ÖÐ session ±äÁ¿µÄÊý×é¡£²ÎÔÄ <link linkend="ref.session">Session º¯Êý</link> ÎĵµÒÔ»ñµÃ¸ü¶àÐÅÏ¢¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $_SESSION;</command> to access it within functions or methods, as - you do with <varname>$HTTP_SESSION_VARS</varname>. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $_SESSION;</command> À´·ÃÎÊËü£¬¾ÍÈçͬʹÓà <varname>$HTTP_SESSION_VARS</varname> Ò»Ñù¡£ </simpara> <simpara> - <varname>$HTTP_SESSION_VARS</varname> contains the same - information, but is not an autoglobal. + <varname>$HTTP_SESSION_VARS</varname> °üº¬ÕßͬÑùµÄÐÅÏ¢£¬µ«ÊDz»ÊÇÒ»¸ö×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> <simpara> - If the <link - linkend="ini.register-globals">register_globals</link> directive - is set, then these variables will also be made available in the - global scope of the script; i.e., separate from the - <varname>$_SESSION</varname> and <varname>$HTTP_SESSION_VARS</varname> - arrays. For related information, see the security chapter titled - <link linkend="security.registerglobals">Using Register - Globals</link>. These individual globals are not autoglobals. + Èç¹ûÉèÖÃÁË <link linkend="ini.register-globals">register_globals</link> Ö¸ÁÕâЩ±äÁ¿Ò²ÔÚËùÓнű¾ÖпÉÓã»Ò²¾ÍÊÇ£¬·ÖÀëÁË <varname>$_SESSION</varname> ºÍ <varname>$HTTP_SESSION_VARS</varname> Êý×é¡£Ïà¹ØÐÅÏ¢£¬Çë²ÎÔݲȫµÄÏà¹ØÕÂ½Ú <link linkend="security.registerglobals">ʹÓà Register Globals</link>¡£ÕâЩµ¥¶ÀµÄÈ«¾Ö±äÁ¿²»ÊÇ×Ô¶¯È«¾Ö±äÁ¿¡£ </simpara> </sect2> <sect2 id="reserved.variables.globals"> - <title>Global variables: <varname>$GLOBALS</varname></title> + <title>Global ±äÁ¿£º<varname>$GLOBALS</varname></title> <note> <simpara> - <varname>$GLOBALS</varname> has been available since PHP 3.0.0. + <varname>$GLOBALS</varname> ÔÚ PHP 3.0.0 ¼°ÒÔºó°æ±¾ÖÐÊÊÓᣠ</simpara> </note> <simpara> - An associative array containing references to all variables which - are currently defined in the global scope of the script. The - variable names are the keys of the array. + ÓÉËùÓÐÒѶ¨ÒåÈ«¾Ö±äÁ¿×é³ÉµÄÊý×é¡£±äÁ¿Ãû¾ÍÊǸÃÊý×éµÄË÷Òý¡£ </simpara> <simpara> - This is a 'superglobal', or automatic global, variable. This - simply means that it is available in all scopes throughout a - script. You don't need to do a <command>global - $GLOBALS;</command> to access it within functions or methods. + ÕâÊÇÒ»¸ö¡°superglobal¡±£¬»òÕß¿ÉÒÔÃèÊöΪ×Ô¶¯È«¾Ö±äÁ¿¡£ÕâÖ»²»¹ýÒâζÕâËüÔÚËùÓеĽű¾Öж¼ÓÐЧ¡£ÔÚº¯Êý»ò·½·¨ÖÐÄú²»ÐèҪʹÓà <command>global $GLOBALS;</command> À´·ÃÎÊËü¡£ </simpara> </sect2> <sect2 id="reserved.variables.phperrormsg"> - <title>The previous error message: <varname>$php_errormsg</varname></title> + <title>ǰһ¸ö´íÎóÏûÏ¢£º<varname>$php_errormsg</varname></title> <simpara> - <varname>$php_errormsg</varname> is a variable containing the - text of the last error message generated by PHP. This variable - will only be available within the scope in which the error - occurred, and only if the <link - linkend="ini.track-errors">track_errors</link> configuration - option is turned on (it defaults to off). + <varname>$php_errormsg</varname> Êǰüº¬ PHP ²úÉúµÄÉÏÒ»´íÎóÏûÏ¢ÄÚÈݵıäÁ¿¡£¸Ã±äÁ¿ÔÚ·¢Éú´íÎó²¢ÇÒ<link linkend="ini.track-errors">track_errors</link> Ñ¡Ïî´ò¿ª£¨Ä¬ÈÏΪ¹Ø±Õ£©ºó²ÅÓÐЧ¡£ </simpara> </sect2> </sect1> <sect1 id="reserved.classes"> - <title>Predefined Classes</title> + <title>Ô¤¶¨ÒåÀà</title> <sect2 id="reserved.classes.standard"> - <title>Standard Defined Classes</title> + <title>±ê×¼Àà</title> <simpara> - These classes are defined in the standard set of functions included - in the PHP build. + ÕâЩÀàÓÉһЩÄÚ½¨ÔÚ PHP Öеıê×¼º¯Êý¶¨Òå¡£ </simpara> <variablelist> @@ -863,7 +739,7 @@ <term><classname>Directory</classname></term> <listitem> <simpara> - The class from which <function>dir</function> is instantiated. + ʹÓà <function>dir</function> º¯Êýºó·µ»ØµÄÀà¡£ </simpara> </listitem> </varlistentry> @@ -878,13 +754,10 @@ </sect2> <sect2 id="reserved.classes.ming"> - <title><link linkend="ref.ming">Ming</link> Defined Classes</title> + <title><link linkend="ref.ming">Ming</link> Àà</title> <simpara> - These classes are defined in the - <link linkend="ref.ming">Ming</link> - extension, and will only be available when that extension has either - been compiled into PHP or dynamically loaded at runtime. + ÕâЩÀàÔÚ <link linkend="ref.ming">Ming</link> À©Õ¹Öж¨Ò壬ֻÓÐÔÚ¸ÃÀ©Õ¹±»±àÒëµ½ PHP ÖлòÕß¶¯Ì¬×°Ôغó²Å¿ÉÒÔʹÓᣠ</simpara> <variablelist> @@ -983,13 +856,10 @@ </sect2> <sect2 id="reserved.classes.oci8"> - <title><link linkend="ref.oci8">Oracle 8</link> Defined Classes</title> + <title><link linkend="ref.oci8">Oracle 8</link> Àà</title> <simpara> - These classes are defined in the <link - linkend="ref.oci8">Oracle 8</link> extension, and will only be - available when that extension has either been compiled into PHP - or dynamically loaded at runtime. + ÕâЩÀàÔÚ <link linkend="ref.oci8">Oracle 8</link> À©Õ¹Öж¨Ò壬ֻÓÐÔÚ¸ÃÀ©Õ¹±»±àÒëµ½ PHP ÖлòÕß¶¯Ì¬×°Ôغó²Å¿ÉÒÔʹÓᣠ</simpara> <variablelist> @@ -1011,13 +881,10 @@ </sect2> <sect2 id="reserved.classes.qtdom"> - <title><link linkend="ref.qtdom">qtdom</link> Defined Classes</title> + <title><link linkend="ref.qtdom">qtdom</link> Àà</title> <simpara> - These classes are defined in the - <link linkend="ref.qtdom">qtdom</link> - extension, and will only be available when that extension has either - been compiled into PHP or dynamically loaded at runtime. + ÕâЩÀàÔÚ <link linkend="ref.qtdom">qtdom</link> À©Õ¹Öж¨Ò壬ֻÓÐÔÚ¸ÃÀ©Õ¹±»±àÒëµ½ PHP ÖлòÕß¶¯Ì¬×°Ôغó²Å¿ÉÒÔʹÓᣠ</simpara> <variablelist>
« previous php.doc.zh (#306) next »