[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
;PHP的初始化文件,命名為php.ini,負責配置PHP的各種行為和功能。
; PHP attempts to find and load this configuration from a number of locations.
; PHP會嘗試從某個位置加載配置
; The following is a summary of its search order:
; php.ini的加載是有順序的,PHP會按照以下順序依次加載
; 1. SAPI module specific location.
; SAPI模塊的位置
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 環境變量PHPRC PHPRC即php.ini的查找路徑
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; Windows注冊表的指定位置
; 4. Current working directory (except CLI)
; 當前工作目錄(CLI除外)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; web服務器目錄(SAPI模塊)或者PHP目錄位置
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; 編譯時 –with-config-file-path的指定目錄
; See the PHP docs for more specific information.
; http://php.net/configuration.file
; The syntax of the file is extremely simple. Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
; 文檔注釋方式:空白字符和用分號開始的行被被忽略(這個你可能已經猜到了)。 章節標題(例如 : [Foo])也被忽略,即使將來它們可能 有某種的意義。
; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory. Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com. Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
;PHP作用域:指令[PATH=/www/mysite]僅僅適用於目錄/www/mysite中的php文件; [HOST=www.example.com]僅僅對www.example.com中 的php文件起作用。目前,[PATH=]和[HOST=]僅僅工作在CGI和FastCGI中。特別的字段不能對用戶單獨的設置覆蓋,即設置以用戶單獨 設置的為准。
; http://php.net/ini.sections
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation. If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.
;PHP指令說明:語法:指令=值;指令區分大小寫;指令定義的變量用於配置PHP或PHP擴展;無名稱驗證,如果php找不到指定 的指令或指令配置錯誤,則啟用默認值;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})
; 指令的值可以是:字符串,數字,php常量,INI常量 (On,Off,True,False,Yes,No,None),帶引號的字符串,先前設置的變量或者指令引用;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; ^ bitwise XOR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
; foo = ; sets foo to an empty string
; foo = None ; sets foo to an empty string
; foo = "None" ; sets foo to the string 'None'
;表達式限於操作符或者括號| (OR)^(XOR)&(AND)~(NOT)!(NOT);布爾值:真可以是1,On,Ture,Yes假值可以為 0,Off,False,No;空值:可以是None或者空白(即什麼都不寫);
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;如果你在值中使用常量,並且這些常量屬於動態加載的模塊(PHP擴展或 Zend擴展),你只能在擴展中加載了後再使用這個變量(即變量要先定義後使用)
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.
; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.
; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.
;PHP自帶了兩個文件,一個用於生產環境,另一個用於開發環境。php.ini-production在內核中包含了安全,性能和 最佳做法的設置;但是請注意,這些設置可能破壞和老版本的兼容性和極少的安全良心應用;我們建議在生產和測試環境中使用此文件。php.ini- development和生產版本非常相似,除了它出錯後提供的詳細信息;建議僅在開發環境中使用此文件,否則錯誤輸出到程序導致用戶在不經意間洩露安全 信息。
;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.
; 快速參考
;以下是關於在INI文件中生產和開發環境中的默認行為的區別。請查看文檔後面的實際設置來得到更多詳細的信息,從而可以看出我們做這些 變化的原因。
; allow_call_time_pass_reference
; Default Value: On
; Development Value: Off
; Production Value: Off
; allow_call_time_pass_reference 在函數調用時參數被按照引用傳遞時是否發出警告。默認ON開啟,開發環境中是OFF,正式發布環境中是OFF
; display_errors
; Default Value: On
; Development Value: On
; Production Value: Off
; display_errors 顯示所有錯誤信息,默認ON開啟,開發環境中是on,正式發布環境中是off
; display_startup_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
; display_startup_errors 顯示PHP啟動過程中的錯誤信息 默認off,開發環境中是on,正式發布環境中是off
; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; html_errors
; Default Value: On
; Development Value: On
; Production value: Off
; html_errors 在錯誤信息中關閉HTML標簽 默認on,開發環境中是on,正式發布環境中是off
; log_errors
; Default Value: Off
; Development Value: On
; Production Value: On
;log_errors 設置是否將腳本運行的錯誤信息記錄到服務器錯誤日志或者error_log之中 默認off,開發環境on,正式發布環境on
; magic_quotes_gpc
; Default Value: On
; Development Value: Off
; Production Value: Off
;magic_quotes_gpc 設置是否自動為GPC(get,post,cookie)傳來的數據中的\'\"\\加上反斜線進行轉義 默認on,開發環境off,正式發布環境off
; max_input_time
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; max_input_time 設置POST、GET以及PUT方式接收數據時間限制 默認-1 不限制,開發環境60秒,正式發布環境60秒
; output_buffering
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; output_buffering 設置輸出緩存限制 off:關閉PHP輸出緩存,On: 打開無限大的輸出緩存; 默認off,開發環境打開大小為4096Byte的輸出緩存
; register_argc_argv
; Default Value: On
; Development Value: Off
; Production Value: Off
; register_argc_argv 設置是否能夠給腳本傳遞參數 默認on,開發環境off,正式發布環境off
; register_long_arrays
; Default Value: On
; Development Value: Off
; Production Value: Off
; register_long_arrays 設定 PHP 是否注冊已過時的 $HTTP_*_VARS 之類的預定義變量 默認on,開發環境off,正式發布環境off
; request_order
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; request_order PHP注冊GET,POST和COOKIE變量的REQUEST數組的值。注冊是由左到右,新的值將覆蓋舊值。 默認為none,開發環境為GP,正式環境為GP GP表示$_REQUEST只包含$_GET和$_POST而不包括$_COOKIE
; session.bug_compat_42
; Default Value: On
; Development Value: On
; Production Value: Off
;session.bug_compat_42 設定register_globals被禁用的情況下,是否允許您初始一個處於全局的session變量;默認on,開發環境on,正式發布環境off
; session.bug_compat_warn
; Default Value: On
; Development Value: On
; Production Value: Off
;session.bug_compat_warn設定register_globals被禁用的情況下,是否允許在初始一個處於全局的session變量時,顯示警告信息;默認on,開發環境on,正式發布環境off
; session.gc_divisor
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
;session.gc_divisor 設置會話初始化時啟動 gc(garbage collection 垃圾回收)進程的概率的除數。session.gc_divisor 與 session.gc_probability 合起來定義了在每個會話初始化時啟動 gc(garbage collection 垃圾回收)進程的概率。此概率用 gc_probability/gc_divisor 計算得來。例如 1/100 意味著在每個請求中有 1% 的概率啟動 gc 進程。
; session.hash_bits_per_character
; Default Value: 4
; Development Value: 5
; Production Value: 5
;session.hash_bits_per_character允許用戶定義將二進制散列數據轉換為可讀的格式時每個字符存放多少個比特。
; short_open_tag
; Default Value: On
; Development Value: Off
; Production Value: Off
;short_open_tag 設定是否允許 <? 標簽. 否則,只有 <?php 和 <script> 標簽被認為是PHP腳本.
; track_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
; track_errors 設定是否在$php_errormsg中存儲錯誤/警告信息
; url_rewriter.tags
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;url_rewriter.tags 指定在使用透明 SID 支持時哪些 HTML 標記會被修改以加入會話 ID;
; variables_order
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS"
; variables_order 指定PHP記錄GET,POST,Cookie,Environment和Built-in這些變量的順序;以G,P,C,E和S代表,通常以EGPCS或GPC的方式引用,按從左到右記錄,最新的記錄覆蓋較舊的
;;;;;;;;;;;;;;;;;;;;
; php.ini Options ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"
;用戶可以自定義的php.ini文件(。htaccess文件)的名稱。默認值是“.user.ini”
; To disable this feature set this option to empty value
;user_ini.filename =
; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300
;讀取.user.ini後會緩存起來,根據user_ini.cache_ttl確定重新讀取的時間
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
;是否使PHP腳本語言在Apache服務器下有效
; Enable the PHP scripting language engine under Apache.
; http://php.net/engine
engine = On
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off
; short_open_tag 是否允許使用"<? ?>"短標識。否則必須使用"<?php ?>"長標識。
; 除非你的php程序僅在受控環境下運行,且只供自己使用,否則請不要使用短標記。
; 如果要和XML結合使用PHP,可以選擇關閉此選項以方便直接嵌入"<?xml ... ?>",
; 不然你必須用PHP來輸出:<? echo '<?xml version="1.0"'; ?>
; 本指令也會影響到縮寫形式"<?=",它和"<? echo"等價,要使用它也必須打開短標記。
; Allow ASP-style <% %> tags.
; http://php.net/asp-tags
asp_tags = Off
; 是否允許ASP風格的標記"<% %>",這也會影響到縮寫形式"<%="。
; PHP6中將刪除此指令
; The number of significant digits displayed in floating point numbers.
; http://php.net/precision
precision = 14
; 浮點型數據顯示的有效位數。
; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://php.net/y2k-compliance
y2k_compliance = On
; 是否強制打開2000年適應(可能在非Y2K適應的浏覽器中導致問題)。
; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
; functions.
; Possible Values:
; On = Enabled and buffer is unlimited. (Use with caution)
; Off = Disabled
; Integer = Enables the buffer and sets its maximum size in bytes.
; Note: This directive is hardcoded to Off for the CLI SAPI
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://php.net/output-buffering
output_buffering = 4096
; 輸出緩沖區大小(字節)。建議值為4096~8192。
; 輸出緩沖允許你甚至在輸出正文內容之後再發送HTTP頭(包括cookies)。
; 其代價是輸出層減慢一點點速度。
; 設置輸出緩沖可以減少寫入,有時還能減少網絡數據包的發送。
; 這個參數的實際收益很大程度上取決於你使用的是什麼Web服務器以及什麼樣的腳本。
; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
; directive. Instead, explicitly set the output handler using ob_start().
; Using this ini directive may cause problems unless you know what script
; is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
; Instead you must use zlib.output_handler.
; http://php.net/output-handler
;output_handler =
; 將所有腳本的輸出重定向到一個輸出處理函數。
; 比如,重定向到mb_output_handler()函數時,字符編碼將被透明地轉換為指定的編碼。
; 一旦你在這裡指定了輸出處理程序,輸出緩沖將被自動打開(output_buffering=4096)。
; 注意0: 此處僅能使用PHP內置的函數,自定義函數應在腳本中使用ob_start()指定。
; 注意1: 可移植腳本不能依賴該指令,而應使用ob_start()函數明確指定輸出處理函數。
; 使用這個指令可能會導致某些你不熟悉的腳本出錯。
; 注意2: 你不能同時使用"mb_output_handler"和"ob_iconv_handler"兩個輸出處理函數。
; 你也不能同時使用"ob_gzhandler"輸出處理函數和zlib.output_compression指令。
; 注意3: 如果使用zlib.output_handler指令開啟zlib輸出壓縮,該指令必須為空。
; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
; outputs chunks that are few hundreds bytes each as a result of
; compression. If you prefer a larger chunk size for better
; performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
; output_handler, or otherwise the output will be corrupted.
; http://php.net/zlib.output-compression
zlib.output_compression = Off
; http://php.net/zlib.output-compression-level
;zlib.output_compression_level = -1
; 使用zlib庫對輸出進行壓縮
; 對此選項的有效值是 'off', 'on', 或者字節數 (用來壓縮的緩沖大小 , 默認是 4KB)
; 注意: 結果的chunk大小可能由於壓縮對象的大小而不同.
; PHP輸出塊的大小一般壓縮之後每個大小時幾百個字節.
; 如果你希望藉由一個大塊的堆大小來獲取更好的性能, 需要額外的打開 output_buffering 選項.
; 注意: 你必須使用 zlib.output_handler 來替代標准的
; output_handler, 否則輸出可能會有問題.
; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://php.net/zlib.output-handler
;zlib.output_handler =
; 這裡激活 zlib.output_compression 之後,你無法再指定額外的輸出處理.
; 這個設置和 output_handler 一樣,但是處理順序不同.
; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block. This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block. Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://php.net/implicit-flush
; Note: This directive is hardcoded to On for the CLI SAPI
implicit_flush = Off
; 是否要求PHP輸出層在每個輸出塊之後自動刷新數據。
; 這等效於在每個 print()、echo()、HTML塊 之後自動調用flush()函數。
; 打開這個選項對程序執行的性能有嚴重的影響,通常只推薦在調試時使用。
; 在CLI SAPI的執行模式下,該指令默認為 On 。
; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =
; 如果解序列化處理器需要實例化一個未定義的類,
; 這裡指定的回調函數將以該未定義類的名字作為參數被unserialize()調用,
; 以免得到不完整的"__PHP_Incomplete_Class"對象。
; 如果這裡沒有指定函數,或指定的函數不包含(或實現)那個未定義的類,將會顯示警告信息。
; 所以僅在確實需要實現這樣的回調函數時才設置該指令。
; 若要禁止這個特性,只需置空即可。
; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 17
; 將浮點型和雙精度型數據序列化存儲時的精度(有效位數)。
; 默認值能夠確保浮點型數據被解序列化程序解碼時不會丟失數據。
; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://php.net/allow-call-time-pass-reference
allow_call_time_pass_reference = Off
; 是否**在函數調用時按引用傳遞參數(每次使用此特性都會收到一條警告)。
; php反對這種做法,並在PHP6裡刪除了該指令(相當於設為Off),因為它影響到了代碼的整潔。
; 鼓勵的方法是在函數聲明裡明確指定哪些參數按引用傳遞。
; 我們鼓勵你關閉這一選項,以保證你的腳本在將來版本的語言裡仍能正常工作。
; Safe Mode
; http://php.net/safe-mode
safe_mode = Off
; 是否啟用安全模式。
; 打開時,PHP將檢查當前腳本的擁有者是否和被操作的文件的擁有者相同,
;相同則允許操作,不同則拒絕操作。
; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://php.net/safe-mode-gid
safe_mode_gid = Off
; 在安全模式下,默認在訪問文件時會做UID比較檢查。
; 但有些情況下嚴格的UID檢查反而是不適合的,寬松的GID檢查已經足夠。
; 如果你想將其放寬到僅做GID比較,可以打開這個參數。
; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://php.net/safe-mode-include-dir
safe_mode_include_dir =
; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://php.net/safe-mode-exec-dir
safe_mode_exec_dir =
; 在安全模式下,只有該目錄下的可執行程序才允許被執行系統程序的函數執行。
; 這些函數是:system, escapeshellarg, escapeshellcmd, exec, passthru,
; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes. In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here. By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note: If this directive is empty, PHP will let the user modify ANY
; environment variable!
; http://php.net/safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_
; 在安全模式下,用戶僅可以更改的環境變量的前綴列表(逗號分隔)。
; 允許用戶設置某些環境變量,可能會導致潛在的安全漏洞。
; 注意: 如果這一參數值為空,PHP將允許用戶更改任意環境變量!
; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv(). These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://php.net/safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH
; 在安全模式下,用戶不能更改的環境變量列表(逗號分隔)。
; 這些變量即使在safe_mode_allowed_env_vars指令設置為允許的情況下也會得到保護。
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/open-basedir
;open_basedir =
; 將PHP允許操作的所有文件(包括文件自身)都限制在此組目錄列表下。
; 當一個腳本試圖打開一個指定目錄樹之外的文件時,將遭到拒絕。
; 所有的符號連接都會被解析,所以不可能通過符號連接來避開此限制。
; 特殊值'.'指定了存放該腳本的目錄將被當做基准目錄,
; 但這有些危險,因為腳本的工作目錄可以輕易被chdir()改變。
; 對於共享服務器,在httpd.conf中針對不同的虛擬主機或目錄靈活設置該指令將變得非常有用。
;在Windows中用分號分隔目錄,UNIX系統中用冒號分隔目錄。
; 作為Apache模塊時,父目錄中的open_basedir路徑將自動被繼承。
; 指定的限制實際上是一個前綴,而非一個目錄名,
; 也就是說"/dir/incl"將允許訪問"/dir/include"和"/dir/incls",
; 如果您希望將訪問控制在一個指定的目錄,那麼請在結尾加上一個斜線。
; 默認是允許打開所有文件。
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-functions
disable_functions =
; disable_functions 指令接受一個用逗號分隔的函數名列表,以禁用特定的函數。
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-classes
disable_classes =
; disable_classes 指令接受一個用逗號分隔的類名列表,以禁用特定的類。
; Colors for Syntax Highlighting mode. Anything that's acceptable in
; <span > would work.
; http://php.net/syntax-highlighting
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg = #FFFFFF
;highlight.default = #0000BB
;highlight.html = #000000
; 語法高亮模式的色彩(通常用於顯示 .phps 文件)。
; 只要能被<font color=xxx>接受的東西就能正常工作。
; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://php.net/ignore-user-abort
;ignore_user_abort = On
; 是否即使在用戶中止請求後也堅持完成整個請求。
; 在執行一個長請求的時候應當考慮打開該它,
; 因為長請求可能會導致用戶中途中止或浏覽器超時。
; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://php.net/realpath-cache-size
;realpath_cache_size = 16k
;;realpath_cache_size 指定PHP使用的realpath(規范化的絕對路徑名)緩沖區大小。
; 在PHP打開大量文件的系統上應當增大該值以提高性能。
; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://php.net/realpath-cache-ttl
;realpath_cache_ttl = 120
; realpath緩沖區中信息的有效期(秒)。
; 對文件很少變動的系統,可以增大該值以提高性能。
; Enables or disables the circular reference collector.
; http://php.net/zend.enable-gc
zend.enable_gc = On
;設定是否開啟PHP的垃圾回收機制