php.ini

2018-06-22 05:00:10来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

[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.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of 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)
; See the PHP docs for more specific information.
; http://php.NET/configuration.file
; php在多个位置尝试加载这个配置文件
; 下面是php加载这个文件时的搜索顺序:
; 1. SAPI模块特定的位置
; 2. PHPRC环境变量(PHP5.2.0开始)
; 3. windows下一系列的预定义的注册表键(PHP5.2.0开始)
; 4. 当前工作目录(除了CLI)
; 5. 网络服务器目录(针对SAPI模块)或者PHP目录(otherwise in Windows)
; 6. 编译时--with-config-file-path选项所指的目录或者windows目录(C:\windows or C:\winnt)
; 查看PHP文档获得更多详细信息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.
; http://php.net/ini.sections
; 标题[PATH=/www/mysite]后的指令只应用于/www/mysite目录下的PHP文件,标题[HOST=www.example.com]后的指令只应用于;在

; www.example.com上的PHP文件,这些特殊的节下面设置的指令不可以被用户自定义的INI文件覆写,或在运行时被重写。目前[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.
; 指令规定使用下面的语法:
; directive = value
; 指令的名字是大小写敏感的,比如foo=bar 和 FOO=bar 是不一样的
; 指令是用于配置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常量(如E_ALL or M_PI),INI文件定义的一个常量(On, Off, True, False, Yes, No 和 None),或者是一个表

; 达式(如E_ALL & ~E_NOTICE),引用字符串,或指向先前定义的变量或指令的引用


; Expressions in the INI file are limited to bitwise operators and parentheses:
; 这个INI文件中的表达式仅仅可以使用位运算和括号
; |  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.
; 布尔标识可以用值1,On,True或者Yes打开,并且可以用0,Off,False或No关闭

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
; 一个空字符串可以用在等号后面表示不赋值或者使用“None”这个关键字来表示

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string '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文件,其中一个建议用在正式上线的环境中,另一个建议用在开发环境中

; 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-production拥有对安全、性能和对核心的最佳实践的设置,但是请注意,这些设置可能在较老或具有较低安全性的应用上会失去兼容性,所

; 以我们推荐在正式产品和测试环境中都使用php.ini-production


; php.ini-development is very similar to its production variant, except it is
; much more verbose when it comes to errors. We recommend using the
; development version only in development environments, as errors shown to
; application users can inadvertently leak otherwise secure information.
; php.ini-development与production十分相似,只是当错误发生时,它显示的越详细。我们建议仅仅在开发环境中使用它,因为展示给用户的错误信

; 息可能会不经意间泄露一些安全信息。

; This is php.ini-production INI file.

;;;;;;;;;;;;;;;;;;;
; 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.
; 下面是所有关于PHP的默认行为的设置,这些设置在INI文件的production和development版本是不一样的

; display_errors 显示错误指令
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors  开启错误报告指令
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting  设定报告的错误类型
;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
;   Development Value: E_ALL
;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

; html_errors  是否在错误信息上使用html标记
;   Default Value: On
;   Development Value: On
;   Production value: On

; log_errors  将错误信息记录进日志
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; max_input_time  每个脚本解析输入数据(POST, GET, upload)的最大允许时间(秒)
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)


; output_buffering  输出缓冲区大小
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv 是否声明$argv和$argc全局变量(包含用GET方法的信息)
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order  请求顺序
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5


; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; 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"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ; php.ini选项
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
; 用户自定义的php.ini(.htaccess)文件的文件名,默认为".user.ini"
;user_ini.filename = ".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)
; 用户自定义的php.ini文件生存周期(单位:秒),默认为300秒
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ; 语言选项
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; 使Apache下PHP脚本语言引擎有效
; 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 is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; 这个指令决定是否PHP会将标签<?和?>之间的代码识别为PHP应该执行的源,通常建议使用<?php 和 ?>,而禁止掉这个特性,因为它可能导致在生

; 成XML文档时出现问题。然后为了向后兼容,它现在还是被支持的。注意,这个指令并不控制<?=这个速写标签,它能够在这个指令的限制之外使用

; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; 允许ASP风格的标签<% %>
; http://php.net/asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; 浮点数有效位数
; http://php.net/precision
precision = 14

; 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.
;输出缓存是一个控制PHP在向客户端输出数据(除了头文件和cookies)时,应该在内部缓存多少数据的一个机制。如果你的应用输出超出这个设置,

;PHP会将那些数据大致按照你设置的大小分块输出。打开这个设置和管理它的最大缓冲区大小可能产生一些有趣的副作用,这取决于您的应用程序和

;web服务器。在你通过print和echo输出后你仍可以发送头部和cookies。如果因为buffered output versus PHP streaming the output as it gets it

;你的服务器发送更少的数据包,你会看到性能优势。在生产服务器上,对于性能来说4096 bytes(字节)是一个好的配置

; 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
; 注意:输出缓存也可以通过输出缓存控制函数受到控制。
; 可能的值
; On = 启动并且缓冲区没有限制(谨慎使用)
; Off = 关闭
; Integer = 启动缓存并设置它的最大缓冲字节数
output_buffering = 4096

; 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.
;你可以将你所有的脚本输出重定向到一个函数。例如,如果你设置output_handler为“mb_output_handler”,字符编码会被透明的转化为指定编

;码。设置任何输出处理程序会自动打开输出缓存。

; 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.
;注意:编写便携式脚本的人不应该依赖于这个ini指令,取而代之的是,使用ob-start()明确的设置输出处理程序。除非你知道脚本在做什么,否则将有

;可能出现问题。
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
注意:你不可以同时使用"mb_output_handler" 和 "ob_iconv_handler",也不能同时使用"ob_gzhandler" 和 "zlib.output_compression"
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
;注意:output_handler必须为空如果这里被设置为‘On’!!!你必须使用zlib.output_handler
; http://php.net/output-handler
;output_handler =

; 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)
;透明的输出压缩使用zlib库,这个选项的有效参数有Off,On或者是一个明确的用于压缩的缓冲值(默认是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.
;注意:结果由于压缩的块大小可能会有所不同。PHP输出压缩后的几百字节大小的块,如果为了更好的性能你想要更大的块大小,你可以另外使用

;output_buffering
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
;注意:你需要使用zlib.output_handler而不是标准的output_handler,否则将会损坏输出
; http://php.net/zlib.output-compression
zlib.output_compression = Off

; http://php.net/zlib.output-compression-level
;zlib.output_compression_level = -1

; 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.
;如果激活了zlib.output_compression,你就不可以指定额外的输出处理程序。这个设置和output_handler做了同样的事,只是顺序不同
; http://php.net/zlib.output-handler
;zlib.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.
;隐式冲洗告诉PHP去告诉输出层在每次输出块之后自动删除缓存。这与在每一次调用print()或者echo()和每个HTML块输出后调用PHP的函数flush()是

;等效的。打开这个选项有严重的性能影响,一般的,建议只为了调试才打开

; http://php.net/implicit-flush
; Note: This directive is hardcoded to On for the CLI SAPI
;注意:这个选项在CLI SAPI中被写死成On了
implicit_flush = Off

; 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 =

; 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代表浮动点后面的有效数位。这个默认值保证当浮点数被非序列化译解时,数据可以保持原

;样
serialize_precision = 17

; 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.
;如果设置了open_basedir,所有对于设定的目录以及其下的子目录的文件操作都会受到限制。这个指令用在单目录或者单虚拟主机web服务器配置文

;件上更有用
; http://php.net/open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
;这个指令允许你出于安全考虑将部分函数禁用掉。它接收以逗号隔开的函数名
; http://php.net/disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names.
;这个指令允许你出于安全考虑将部分类禁用掉。它接收以逗号隔开的类名
; http://php.net/disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
;语法高亮模式的颜色。任何<span style="color: ???????">可以接受的都可行
; http://php.net/syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.default = #0000BB
;highlight.html    = #000000

; 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.
;如果开启这个,请求将会被继续完成即使用户中断了请求。如果执行最终可能被用户或一个浏览器超时中断长的请求,考虑启用它。PHP默认的行为是

;禁止这个特性
; 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.
;决定了被PHP 使用的realpath缓存的大小。这个值应该在PHP打开很多文件来反应文件操作完成的数量的系统上增加
; http://php.net/realpath-cache-size
;realpath_cache_size = 16k

; 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.
;持续时间(单位:秒),用于缓存针对给定的文件或者目录的realpath信息。对于很少更改文件的系统,考虑增加这个值。
; http://php.net/realpath-cache-ttl
;realpath_cache_ttl = 120

; Enables or disables the circular reference collector.
;启用或禁用循环引用收集器
; http://php.net/zend.enable-gc
zend.enable_gc = On

; If enabled, scripts may be written in encodings that are incompatible with
; the scanner.  CP936, Big5, CP949 and Shift_JIS are the examples of such
; encodings.  To use this feature, mbstring extension must be enabled.
;如果启用,脚本就可能以不兼容扫描仪的编码被写入。CP936, Big5, CP949 和Shift_JIS就是这种类型的编码。为了使用这种特性,mbstring扩展需要

;启用
; Default: Off
;zend.multibyte = Off

; Allows to set the default encoding for the scripts.  This value will be used
; unless "declare(encoding=...)" directive appears at the top of the script.
; Only affects if zend.multibyte is set.
;允许为脚本设置默认的编码。除非"declare(encoding=...)"指令出现在脚本上方,否则这个值会被使用。只有zend.multibyte被设置了才有效
; Default: ""
;zend.script_encoding =

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
;这个选项决定PHP是否可以暴露它被安装在服务器上的事实(例如:添加它的信号到网络服务器响应的头部信息)。它并没有安全隐患,但是它使得确

;认你是否在服务器上使用PHP成为可能
; http://php.net/expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
;每个脚本的最大执行时间(单位:秒)
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
;注意:这个指令在CLI SAPI中被写死为0
max_execution_time = 30

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
;每个脚本用于解析请求数据的最大时间。为了消除出乎意料的生产服务器上长时间运行的脚本,限制这个时间是个不错的想法
; Note: This directive is hardcoded to -1 for the CLI SAPI
;注意:这个指令在CLI SAPI中被写死为-1
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60

; Maximum input variable nesting level
;最大输入变量嵌套级别
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
;多少GET/POST/COOKIE变量可以被接受
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
;一个脚本最大可以消耗的内存数量(128M)
; http://php.net/memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ; 错误处理和日志
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
;这个指令通知PHP你想要它处理哪一类错误、警告和提示。设置这个指令值的建议通过使用错误级别常量和位运算符。为了方便起见,下面是这些错误

;级别常量以及一些常用设置和他们的意思。

; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;默认的,PHP被配置为对除了与E_NOTICE 和 E_STRICT相关的之外的所有错误、警告和提示都产生报告。E_NOTICE 和 E_STRICT覆盖了PHP中最佳

;实践和推荐编码标准。出于性能考虑,这是推荐的错误报告设置。你的生产服务器不应该浪费资源在解释最佳实践和编码标准上。那是开发服务器的和

;开发配置的目的。
;注意:php.ini-development将这个设置为E_ALL。这表示它会详细报告所有你在开发和前期测试想要知道的问题
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
;所有错误和警告(自PHP 5.4.0起,加入E_STRICT)
; E_ERROR           - fatal run-time errors
;致命的运行时错误
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
;几乎致命的运行时错误
; E_WARNING         - run-time warnings (non-fatal errors)
;运行时警告(即不致命的错误)
; E_PARSE           - compile-time parse errors
;编译时解析错误
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it is automatically initialized to an
;                     empty string)
;运行时提示(这些是警告经常由你的代码里的bug导致的,但也有可能是故意的(例如:使用一个未初始化的变量并且信赖它会被自动初始化为一个空串))
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
;运行时提示,启用可以使PHP为你代码的改变提供建议,这会保证你的代码最好的互操作性以及向前的兼容性
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
;PHP内核启动期间发生的致命错误
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
;PHP内核启动期间发生的警告(非致命错误)
; E_COMPILE_ERROR   - fatal compile-time errors
;致命的编译时错误
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
;编译时警告(非致命错误)
; E_USER_ERROR      - user-generated error message
;用户产生的错误信息
; E_USER_WARNING    - user-generated warning message
;用户产生的警告信息
; E_USER_NOTICE     - user-generated notice message
;用户产生的提示信息
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
;警告以后的版本的PHP将不会用的代码
; E_USER_DEPRECATED - user-generated deprecation warnings
;
;用户产生的反对使用的警告
; Common Values:
;   E_ALL (Show all errors, warnings and notices including coding standards.)
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)
;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;常用值:
;E_ALL (显示所有错误、警告和提示,包括编码标准)
;E_ALL & ~E_NOTICE  (显示所有除了提示外的错误)
;E_ALL & ~E_NOTICE & ~E_STRICT  (显示所有除了提示和编码规范的警告外的错误)
;E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (只显示错误)

; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; For production environments, we recommend logging errors rather than
; sending them to STDOUT.
;这个指令控制PHP是否输出错误和输出错误、提示和警告的位置。在开发期间输出错误是很有用的,但是在生产环境下是非常危险的。依赖触发错误的

;代码,敏感信息如数据库用户名和密码可能泄露或者更严重。对于生产环境,我们建议将错误写进日志,而不是将它们输出到标准输出设备。

; Possible Values:
;   Off = Do not display any errors
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
;   On or stdout = Display errors to STDOUT
;可能的值:
;Off = 不显示任何错误
;stderr = 将错误信息输出到STDERR(仅仅影响CGI/CLI库)
;On或者stdout = 将错误输出到标准输出

; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. We strongly recommend you
; set this to 'off' for production servers.
;发生在PHP启动期间的错误显示将根据display_errors的设置分开处理。PHP的默认行为是抑制来自客户端的错误。打开启动错误的显示在调试配置问

;题的时候是很有用的。我们强烈建议你在生产服务器上将这个指令设置为“off”

; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
;除了显示错误信息,PHP也可以将错误信息记录记录到像服务器特定日志,STDERR等位置,或者下面的error_log指令所指定的位置。因为错误不可

;以被显示在生产服务器上,它们仍然应该被监测,而记录日志就是一个很好的方式。

; Default Value: Off
; Development Value: On
; Production Value: On
; http://php.net/log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
;设置错误日志的最大长度。关于源文件的信息被添加到到error_log所指示的位置。默认值是1024(MB???),而0允许不配置任何最大长度限制。
; http://php.net/log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
;不要记录重复信息。重复出现的错误必须出现在同一个文件同一行除非ignore_repeated_source被设置为真
; http://php.net/ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
;当忽略重复信息的时候忽略信息的来源。当这个设置是On时,你不会记录重复记录来自不同文件或资源的重复信息
; http://php.net/ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
;如果这个参数被设置为Off,那么内存溢出不会被显示(无论在标准输出设备还是日志文件中)。这也仅仅影响调试编译以及错误报告包含

;E_WARMING在允许列表中。
; http://php.net/report-memleaks
report_memleaks = On

; This setting is on by default.
;这个设置默认是打开的
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
;存储最后的错误/警告信息在$php_errormsg(布尔值)。将这个值设置为On可以帮助调试,并且这对于开发服务器来说是合适的。然而,在生产服

;务器上,这是应该被禁用的。
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
;关闭正常的错误报告,打开XML-RPC将错误记录为XML文档
; http://php.net/xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;一个XML-RPC错误代码
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of formatting the
; error message as HTML for easier reading. This directive controls whether
; the error message is formatted as HTML or not.
; Note: This directive is hardcoded to Off for the CLI SAPI
;当PHP显示或者记录一个错误时,它有能力将错误信息格式化为HTML格式以便阅读。这个指令控制错误信息是否被格式化为HTML格式。
;注意:这个指令在CLI SAPI被写死为Off

; Default Value: On
; Development Value: On
; Production value: On
; http://php.net/html-errors
html_errors = On

; If html_errors is set to On *and* docref_root is not empty, then PHP
; produces clickable error messages that direct to a page describing the error
; or function causing the error in detail.
; You can download a copy of the PHP manual from http://php.net/docs
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty, in which
; case no links to documentation are generated.
; Note: Never use this feature for production boxes.
;如果html_errors被设置为On并且docref_root非空,那么PHP将产生可以点击的错误信息,他可以定向到详细描述错误或者引起错误的函数的页面。

;你可以从http://php.net/docs下载一份PHP手册副本并且将docref_root改为你的本地副本所在的URL,包括开头的‘/’。你同时必须指定包

;含“.”的文件扩展名。PHP的默认行为是保持这些设置空白,因此没有指向文档的链接被生成。
;注意:不要在生产盒子使用这个特性。

; http://php.net/docref-root
; Examples
;docref_root = "/phpmanual/"
; http://php.net/docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
;输出错误信息前输出的字符串。PHP的默认行为是保持这个设置空白
; http://php.net/error-prepend-string
; Example:
;error_prepend_string = "<span style='color: #ff0000'>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
;输出错误信息后输出的字符串。PHP的默认行为是保持这个设置空白
; http://php.net/error-append-string
; Example:
;error_append_string = "</span>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
;将错误记录到指定文件,PHP的默认行为是保持这个值空白
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on Windows).
;将错误记录到系统日志(windows上的事件日志)
;error_log = syslog

;windows.show_crt_warning
; Default value: 0
; Development value: 0
; Production value: 0

;;;;;;;;;;;;;;;;;
; Data Handling ; 数据处理
;;;;;;;;;;;;;;;;;

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
;PHP生成的URLs中用于分开变量的分隔符。PHP默认的配置使”&”
; http://php.net/arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
;PHP使用的用于解析输入的URLs为变量的分隔符列表,PHP默认的配置使”&”
; http://php.net/arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. G,P,C,E & S are abbreviations for the following respective super
; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
; paid for the registration of these arrays and because ENV is not as commonly
; used as the others, ENV is not recommended on productions servers. You
; can still get access to the environment variables through getenv() should you
; need to.
;这个指令决定在PHP启动时哪个超全局数组被启动。G,P,C,E & S分别是下面的超全局数组的代表:GET,POST,COOKIE,ENV和SERVER。注册这

;些数组有个性能损耗,而且因为ENV并不像其他的那样经常被用到,所以ENV并不建议在生产服务器上使用。但是如果你需要的话你仍然可以获取通

;过getenv()获取环境变量。
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://php.net/variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P & C) should be
; registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive
; are specified in the same manner as the variables_order directive,
; EXCEPT one. Leaving this value empty will cause PHP to use the value set
; in the variables_order directive. It does not mean it will leave the super
; globals array REQUEST empty.
;这个指令决定G、P和C哪个超全局数据应该被注册到超全局数组REQUEST中。同时它也决定这些数据被注册的顺序。这个指令的值与variables_order

;指令以同样的方式制定,除了一个。这个值保留空白时,PHP将会使用variables_order指令所设置的值,并不意味着会使REQUEST这个超全局数组为空
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://php.net/request-order
request_order = "GP"

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Note: This directive is hardcoded to On for the CLI SAPI
;这个指令决定PHP每次运行时是否注册$argv和$argc。$argv包含一个当一个脚本被调用时传递给PHP的所有参数的数组。$argc包含一个当一个脚本

;被调用时传递给PHP的所有参数的个数的整型数。这些数组在通过命令行运行脚本时是十分有用的。当这个指令被启用时,每当一个脚本被执行时注册

;这些变量都会消耗CPU周期和内存。出于性能考虑,这个特性应该在生产服务器上禁用。
;注意:这个指令在CLI和SAPI被写死成On
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/register-argc-argv
register_argc_argv = Off

; When enabled, the ENV, REQUEST and SERVER variables are created when they're
; first used (Just In Time) instead of when the script starts. If these
; variables are not used within a script, having this directive on will result
; in a performance gain. The PHP directive register_argc_argv must be disabled
; for this directive to have any affect.
;当这个配置启用时,ENV,REQUEST和SERVER变量会在第一次使用时(Just In Time)被创建,而不是脚本开始的时候。如果这些变量在脚本中都没

;有被使用,那么将这个指令打开将会使性能提高。为了使这个指令生效,PHP指令register_argc_argv必须被禁用
; http://php.net/auto-globals-jit
auto_globals_jit = On

; Whether PHP will read the POST data.
; This option is enabled by default.
; Most likely, you won't want to disable this option globally. It causes $_POST
; and $_FILES to always be empty; the only way you will be able to read the
; POST data will be through the php://input stream wrapper. This can be useful
; to proxy requests or to process the POST data in a memory efficient fashion.
;决定是否PHP会读取POST数据,这个选项默认是启动的。你有很大的可能性不会想去全局的禁用这个选项。这将导致$_POST和$_FILES总是空的;你

;唯一可以读到POST数据的方法是通过php://输入流包装器。这对于代理请求和用一种内存高效的方式处理POST数据是有用的。
; http://php.net/enable-post-data-reading
;enable_post_data_reading = Off

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
;PHP可以接受的POST数据的最大长度。它的值为0时表示没有限制。如果POST数据读取通过enable_post_data_reading被禁用了,这个配置将会被

;忽略。
; http://php.net/post-max-size
post_max_size = 8M

; Automatically add files before PHP document.
;在PHP文档前自动添加文件
; http://php.net/auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
;在PHP文档后自动添加文件
; http://php.net/auto-append-file
auto_append_file =

; By default, PHP will output a character encoding using
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
; PHP's built-in default is text/html
;默认地,PHP会使用Content-type: header输出一个字符编码。禁用发送的字符集只需要简单的设置这个指令为空。PHP内置的类型默认为 text/html
; http://php.net/default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to UTF-8.
;PHP默认的字符集为UTF-8

; http://php.net/default-charset
default_charset = "UTF-8"

; PHP internal character encoding is set to empty.
; If empty, default_charset is used.
;PHP内部的字符编码被设置为空,如果为空,则使用default_charset
; http://php.net/internal-encoding
;internal_encoding =

; PHP input character encoding is set to empty.
; If empty, default_charset is used.
;PHP输入的字符编码被设置为空,如果为空,则使用default_charset
; http://php.net/input-encoding
;input_encoding =

; PHP output character encoding is set to empty.
; If empty, default_charset is used.
; mbstring or iconv output handler is used.
; See also output_buffer.
;PHP输出的字符编码被设置为空,如果为空,则使用default_charset。
;mbstring或者iconv输出处理程序被使用
;也可以查看output_buffer
; http://php.net/output-encoding
;output_encoding =

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature and it will be removed in a future version.
; If post reading is disabled through enable_post_data_reading,
; $HTTP_RAW_POST_DATA is *NOT* populated.
;总是构建$HTTP_RAW_POST_DATA变量。PHP默认的行为是禁用这个特性,并且会在将来的版本移除。如果POST数据读取通过

;enable_post_data_reading被禁用,$HTTP_RAW_POST_DATA就不被构建
; http://php.net/always-populate-raw-post-data
;always_populate_raw_post_data = -1

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ; 路径和目录
;;;;;;;;;;;;;;;;;;;;;;;;;


; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"  使用“:”
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"  使用“;”
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
;PHP的include_path默认的配置是“.;/php安装路径/pear”
;当使用include(),require(),fopen_with_path()函数来寻找文件时候,在不设置include_path的情况下,这些函数打开文件时默认的是以web根目录去寻

;找.当设置include_path以后,这些php函数就会先在指定的include_path目录下面去搜索寻找
; http://php.net/include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
;PHP页面的根目录,当非空时才被使用。如果PHP编译没有配置FORCE_REDIRECT,当你在任何服务器上把PHP当做CGI来运行时,你应该设置

;doc_root
; http://php.net/doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
;在这个目录下PHP使用/~username打开脚本,只有非空时才有效
; http://php.net/user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
;可加载的扩展(模块)存在的目录
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"

; Directory where the temporary files should be placed.
; Defaults to the system default (see sys_get_temp_dir)
;临时文件存放的目录,默认值和系统的默认值一致(查看sys_get_temp_dir)
; sys_temp_dir = "/tmp"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
;是否启用dl()函数。dl()函数在多线程的服务器(如IIS、Zeus)上工作的不是很好,在这些服务器上,dl()函数会被自动禁用。(dl函数与系统操作相关)
; http://php.net/enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
;在大多数服务器上,cgi.forec_redirect对于PHP作为CGI运行时提供安全性是必要的。如果没有定义它,PHP默认会将它打开。你可以在这里将它关

;闭,而你自己负责承担风险。

; http://php.net/cgi.force-redirect
;cgi.force_redirect = 1


; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;如果cgi.nph被打开,它将会迫使cgi总是对每个请求发送200状态。PHP的默认行为是禁用这个性能。
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
;如果cgi.force_redirect被打开,并且你不是在Apache或者Netscape下(IPlanet)运行服务器,你就需要设置一个PHP可以查看并明白可以继续执行

;的环境变量名,设置这个变量可能会导致安全问题,你可以了解下你首先应该要怎么做
; http://php.net/cgi.redirect-status-env
;cgi.redirect_status_env =

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
;cgi.fix_pathinfo提供真实的PATH_INFO/PATH_TRANSLATED支持给CGI。PHP的早先行为是设置PATH_TRANSLATED 为 SCRIPT_FILENAME,并

;不深究PATH_INFO是什么。了解更多关于PATH_INFO的信息,查看cgi 说明书。将这个指令设置为1
;将会导致PHP的CGI路径修正为符合规格。默认值是1.你应该修正自己的脚本去使用SCRIPT_FILENAME,而不是使用PATH_TRANSLATED


; http://php.net/cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
;FastCGI在IIS(WinNT系统)支持模拟调用客户端的安全令牌的能力,这允许IIS定义给请求安全运行的上下文。Apache下的mod_fastcgi当前不支持

;这个特性(03/17/2002)
; http://php.net/fastcgi.impersonate
;fastcgi.impersonate = 1

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;通过FastCGI链接禁用日志记录。PHP默认的行为是启用这个特性。
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If set to 0, PHP sends Status: header that
; is supported by Apache. When this option is set to 1, PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers配置选项告诉PHP当发送http响应码的时候使用什么类型的头部。如果设置为0,PHP发送Apache支持的 状态:头部。当设置为1

;时,PHP发送RFC2616文档规定的头部
; http://php.net/cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ; 文件上载
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
;是否允许使用http上传文件
; http://php.net/file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;使用http上传文件的临时目录(如果没有指定,将使用系统默认的目录)
; http://php.net/upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
;允许上传文件的最大值
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

; Maximum number of files that can be uploaded via a single request
;通过一个请求可以同时上载的最大文件数量
max_file_uploads = 20

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ; 
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
;是否允许将URLs(如http://、ftp://)作为文件处理
; http://php.net/allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
;是否允许 include/require 将URLs作为文件打开

; http://php.net/allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
;定义匿名的ftp密码(你的邮箱地址)。PHP的默认配置是空

; http://php.net/from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
;定义用户代理字符串。PHP的默认设置是空。
; http://php.net/user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
;基于套接字的流的默认超时时间(单位:秒)
; http://php.net/default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
;如果你的脚本需要处理来之麦金塔系统(苹果公司的系统)的文件,或者你在Mac上运行并且需要处理来自UNIX或者win32的文件,那么设置这个标

;志将会触使PHP自动检测那些文件的EOL特性以便fget()和file()会忽略文件的源进行工作。
; http://php.net/auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;如果你希望使扩展自动加载,请使用下面的语法。
;   extension=modulename.extension
;extension=模块名.扩展名
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;如果你只提供扩展名,PHP会在它的默认扩展目录下寻找。

;
; Windows Extensions    Windows下的扩展 
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;注意:ODBC支持是PHP内部集成的,所以不需要dll文件
;注意:很多DLL文件是放置于extensions/ (PHP 4) 或者ext/ (PHP 5)

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
                         ;必须存在于mbstring后面因为它依赖于mbstring
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
; 使用Oracle数据库12c的即时客户端
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

; The MIBS data available in the PHP distribution must be installed. 
; See http://www.php.net/manual/en/snmp.installation.php 
;extension=php_snmp.dll

;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;  模块设置
;;;;;;;;;;;;;;;;;;;

CLI   command-line interface,命令行界面

[CLI Server] 
; Whether the CLI web server uses ANSI color coding in its terminal output.
;是否CLI网络服务器在它的终端输出使用ANSI颜色编码
cli_server.color = On

[Date]
; Defines the default timezone used by the date functions
定义供日期函数使用的默认时区
; http://php.net/date.timezone
;date.timezone =

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667 默认纬度

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333  默认经度

; http://php.net/date.sunrise-zenith  日出最高点
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith  日落最高点
;date.sunset_zenith = 90.583333

[filter]
; http://php.net/filter.default
;filter.default = unsafe_raw

; http://php.net/filter.default-flags
;filter.default_flags =

[iconv]
; Use of this INI entry is deprecated, use global input_encoding instead.
; If empty, default_charset or input_encoding or iconv.input_encoding is used.
; The precedence is: default_charset < intput_encoding < iconv.input_encoding
;不赞成使用这个ini入口,取而代之的是使用全局input_encoding。如果这个设置为空,将使用default_charset 或者 input_encoding 或者 

;iconv.input_encoding。优先级为:default_charset < intput_encoding < iconv.input_encoding
;iconv.input_encoding =

; Use of this INI entry is deprecated, use global internal_encoding instead.
; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
;不赞成使用这个ini入口,取而代之的是使用全局internal_encoding。如果这个设置为空,将使用default_charset 或者 internal_encoding 或者 

;iconv. internal_encoding。优先级为:default_charset < internal_encoding < iconv. internal_encoding
;iconv.internal_encoding =

; Use of this INI entry is deprecated, use global output_encoding instead.
; If empty, default_charset or output_encoding or iconv.output_encoding is used.
; The precedence is: default_charset < output_encoding < iconv.output_encoding
; To use an output encoding conversion, iconv's output handler must be set
; otherwise output encoding conversion cannot be performed.
;不赞成使用这个ini入口,取而代之的是使用全局output _encoding。如果这个设置为空,将使用default_charset 或者 output_encoding 或者 

;iconv. output_encoding。优先级为:default_charset < output _encoding < iconv. output_encoding
;使用一个输出编码转换,iconv的输出处理程序必须设置,否则输出编码转换将不起作用
;iconv.output_encoding =

[intl]
;intl.default_locale =
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
;这个指令允许你当错误发生在intl函数内时生成PHP错误信息,它的值是生成的错误级别。默认值为0,不产生任何错误。
;intl.error_level = E_WARNING

[sqlite]
; http://php.net/sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。这些在执行正规表达式模式匹配时用与Perl 5同样的语

;法和语义是很有用的

;PCRE library backtracking limit.
;PCRE库回溯限制
; http://php.net/pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
;PCRE库递归限制。请注意,如果你将这个值设置为比较高的值,你可能消耗所有的可用进程堆栈,最后导致PHP崩溃(原因是达到了操作系统对堆栈

;大小的限制)
; http://php.net/pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
;是否使用ODBC连接池。可以是"strict", "relaxed" 或者 "off"中的一个
; http://php.net/pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

;pdo_odbc.db2_instance_name

[Pdo_mysql]
; If mysqlnd is used: Number of cache slots for the internal result set cache
;如果mysqlnd被使用,这个代表用于内部结果集缓存的缓存槽数
; http://php.net/pdo_mysql.cache_size
pdo_mysql.cache_size = 2000

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL连接的默认的套接字名字。如果为空,使用内建的MySQL默认设置
; http://php.net/pdo_mysql.default-socket
pdo_mysql.default_socket=

[Phar] ;Phar用于归档,打包发布应用
; http://php.net/phar.readonly
;phar.readonly = On

; http://php.net/phar.require-hash
;phar.require_hash = On

;phar.cache_list =


[mail function] ;邮件函数(使用PHP发送邮件)
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;仅供Unix使用。你可以也可以提供参数(默认为"sendmail -t -i")
; http://php.net/sendmail-path
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail().
;为sendmail二进制强制添加指定的参数作为额外的参数使通过。这些参数会一直将mail()的第五个参数值替换掉
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
;添加X-PHP-Originating-Script:在文件名之后包含脚本的uid
mail.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;指向记录所有mail()调用的一个文件的路径。记录入口包括脚本的绝对路径、行号、发送的目的地址以及头部信息
;mail.log =
; Log mail to syslog (Event Log on Windows).
;将mail记录到系统日志。(Windows上的事件记录)
;mail.log = syslog

[SQL]
; http://php.net/sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://php.net/odbc.default-db
;odbc.default_db    =  Not yet implemented (未实现)

; http://php.net/odbc.default-user
;odbc.default_user  =  Not yet implemented

; http://php.net/odbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Controls the ODBC cursor model.
; Default: SQL_CURSOR_STATIC (default).
;控制ODBC的有表模型。默认值:SQL_CURSOR_STATIC
;odbc.default_cursortype

; Allow or prevent persistent links.
;允许或者放置持久连接
; http://php.net/odbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
;重用前检查连接是否仍然有效
; http://php.net/odbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;持久连接的最大数量。-1表示没有限制
; http://php.net/odbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;连接(包括持久和非持久连接)的最大数量。-1表示没有限制
; http://php.net/odbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
;处理long型字段,返回字节数给变量。0代表通过(?)
; http://php.net/odbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of odbc.defaultlrl and odbc.defaultbinmode
;处理二进制数据。0代表通过,1代表按照原来的样子,2转化为字符。查看odbc_binmode 和 odbc_longreadlen获取odbc.defaultlrl 和 

;odbc.defaultbinmode的解释。
; http://php.net/odbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[Interbase]
; Allow or prevent persistent links.
;允许或防止持久连接
ibase.allow_persistent = 1

; Maximum number of persistent links.  -1 means no limit.
;持久连接的最大数量,-1表示不限制
ibase.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;连接(包括持久连接和非持久连接)的最大数量,-1表示不限制
ibase.max_links = -1

; Default database name for ibase_connect().
;ibase_connect()的默认数据库名
;ibase.default_db =

; Default username for ibase_connect().
;ibase_connect()的默认用户名
;ibase.default_user =

; Default password for ibase_connect().
;ibase_connect()的默认密码
;ibase.default_password =

; Default charset for ibase_connect().
;ibase_connect()的默认字符集
;ibase.default_charset =

; Default timestamp format.
;默认时间戳格式
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"

; Default date format.
;默认日期格式
ibase.dateformat = "%Y-%m-%d"

; Default time format.
;默认时间格式
ibase.timeformat = "%H:%M:%S"

[MySQL]
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
;允许在PHP层面使用LOAD DATA声明访问本地文件
; http://php.net/mysql.allow_local_infile
mysql.allow_local_infile = On

; Allow or prevent persistent links.
;允许或防止持久连接
; http://php.net/mysql.allow-persistent
mysql.allow_persistent = On

; If mysqlnd is used: Number of cache slots for the internal result set cache
;如果mysqlnd被使用,这个代表用于内部结果集缓存的缓存槽数
; http://php.net/mysql.cache_size
mysql.cache_size = 2000

; Maximum number of persistent links.  -1 means no limit.
;持久连接的最大数量,-1表示没有限制
; http://php.net/mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;连接(持久连接和非持久连接)的最大数量,-1表示没有限制
; http://php.net/mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
;mysql_connect()的默认端口号。如果设置了,mysql_connect()会使用$MYSQL_TCP_PORT或者在/etc/services的 mysql-tcp入口或者编译时定义

;MYSQL_PORT的值(按照这几个的先后顺序使用)。Win32只会查看MYSQL_PORT
; http://php.net/mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL连接的默认套接字名。如果为空,使用内建的MySQL默认值
; http://php.net/mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默认主机(在安全模式下不应用)
; http://php.net/mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默认用户(在安全模式下不应用)
; http://php.net/mysql.default-user
mysql.default_user =


; Default password for mysql_connect() (doesn't apply in safe mode).
;mysql_connect()的默认密码(在安全模式下不应用)
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
;注意:将密码存放在这个文件通常不是一个好的idea。任何访问PHP的用户可以运行'echo get_cfg_var("mysql.default_password")' 而泄露这个密

;码。当然,任何对这个文件有读取权限的用户也有能力泄露密码。
; http://php.net/mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
;连接超时的最长时间(单位:秒)。-1表示没有限制
; http://php.net/mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
;追踪模式。当trace_mode被激活(为On),表和索引的警告扫描,并且SQl错误会被显示出来
; http://php.net/mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of persistent links.  -1 means no limit.
;持久连接的最大数量,-1表示没有限制
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1

; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
允许在PHP层面使用LOAD DATA声明访问本地文件
; http://php.net/mysqli.allow_local_infile
;mysqli.allow_local_infile = On

; Allow or prevent persistent links.
;允许或防止持久连接
; http://php.net/mysqli.allow-persistent
mysqli.allow_persistent = On

; Maximum number of links.  -1 means no limit.
;连接的最大数量。-1表示无限制
; http://php.net/mysqli.max-links
mysqli.max_links = -1

; If mysqlnd is used: Number of cache slots for the internal result set cache
;如果mysqlnd被使用,这个代表用于内部结果集缓存的缓存槽数
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
;mysqli_connect()的默认端口号。如果设置了,mysql_connect()会使用$MYSQL_TCP_PORT或者在/etc/services的 mysql-tcp入口或者编译时定义

;MYSQL_PORT的值(按照这几个的先后顺序使用)。Win32只会查看MYSQL_PORT
; http://php.net/mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
;本地MySQL连接的默认套接字名。如果为空,使用内建的MySQL默认值
; http://php.net/mysqli.default-socket
mysqli.default_socket =

; Default host for mysqli_connect() (doesn't apply in safe mode).
;mysqli_connect()的默认主机名(在安全模式下不应用)
; http://php.net/mysqli.default-host
mysqli.default_host =

; Default user for mysqli_connect() (doesn't apply in safe mode).
;mysqli_connect()的默认用户(在安全模式下不应用)
; http://php.net/mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
;mysqli_connect()的默认密码(在安全模式下不应用)
;注意:将密码存放在这个文件通常不是一个好的idea。任何访问PHP的用户可以运行'echo get_cfg_var("mysqli.default_pw ")' 而泄露这个密码。当

;然,任何对这个文件有读取权限的用户也有能力泄露密码。
; http://php.net/mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
;允许或防止重新建立连接
mysqli.reconnect = Off

[mysqlnd]
; Enable / Disable collection of general statistics by mysqlnd which can be
; used to tune and monitor MySQL operations.
;启用和禁用对mysqlnd产生的常规统计,这些统计可用于调整和监测MySQL操作
; http://php.net/mysqlnd.collect_statistics
mysqlnd.collect_statistics = On

; Enable / Disable collection of memory usage statistics by mysqlnd which can be
; used to tune and monitor MySQL operations.
;启用和禁用对mysqlnd产生的内存使用统计,这些统计可用于调整和监测MySQL操作
; http://php.net/mysqlnd.collect_memory_statistics
mysqlnd.collect_memory_statistics = Off

; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
;当以字节发送指令到MySQL时使用的预分配的缓冲区大小
; http://php.net/mysqlnd.net_cmd_buffer_size
;mysqlnd.net_cmd_buffer_size = 2048

; Size of a pre-allocated buffer used for reading data sent by the server in
; bytes.
;读取服务器以字节发送的数据时使用的预分配的缓冲区大小
; http://php.net/mysqlnd.net_read_buffer_size
;mysqlnd.net_read_buffer_size = 32768

[OCI8]
; Connection: Enables privileged connections using external
; credentials (OCI_SYSOPER, OCI_SYSDBA)
;连接:启用使用外部证书的特权连接。
; http://php.net/oci8.privileged-connect
;oci8.privileged_connect = Off

; Connection: The maximum number of persistent OCI8 connections per
; process. Using -1 means no limit.
;连接:每个进程中OCI8持久连接的最大数量,-1表示没有限制
; http://php.net/oci8.max-persistent
;oci8.max_persistent = -1

; Connection: The maximum number of seconds a process is allowed to
; maintain an idle persistent connection. Using -1 means idle
; persistent connections will be maintained forever.
;连接:一个进程可以保持一个闲置长连接的最大秒数。-1表示闲置长连接会被永久保存
; http://php.net/oci8.persistent-timeout
;oci8.persistent_timeout = -1

; Connection: The number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. When
; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
; pings completely.
;连接:在oci_pconnect()检查连接有效性的期间,在发起一个ping之前必须经过的秒数。当被设置为0时,每个oci_pconnect()会导致一个ping。配置

;为-1完全禁用pings。
; http://php.net/oci8.ping-interval
;oci8.ping_interval = 60

; Connection: Set this to a user chosen connection class to be used
; for all pooled server requests with Oracle 11g Database Resident
; Connection Pooling (DRCP).  To use DRCP, this value should be set to
; the same string for all web servers running the same application,
; the database pool must be configured, and the connection string must
; specify to use a pooled server.
;连接:将这个设置为一个用户选择的用于所有用Oracle 11g数据库驻留连接池联合服务器请求的连接类(DRCP)。为了使用DRCp,所有运行同一个应

;用的联合服务器的这个值应设为相同的字符串,数据库池必须被配置,并且连接字符串必须制定使用联合服务器。
;oci8.connection_class =

; High Availability: Using On lets PHP receive Fast Application
; Notification (FAN) events generated when a database node fails. The
; database must also be configured to post FAN events.
;高可用性:使用On让PHP接收当一个数据库结点失败时产生的快速应用通知(FAN)事件。数据库必须被配置成能发送FAN事件
;oci8.events = Off

; Tuning: This option enables statement caching, and specifies how
; many statements to cache. Using 0 disables statement caching.
;调试:这个选项使报表缓存实现,并且指定要缓存多少报表。使用0禁用报表缓存。
; http://php.net/oci8.statement-cache-size
;oci8.statement_cache_size = 20

; Tuning: Enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
;调试:使报表可以预取并且设置报表执行后会被自动获取的默认行数
; http://php.net/oci8.default-prefetch
;oci8.default_prefetch = 100

; Compatibility. Using On means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
;兼容性:使用On表示oci_close()不会关闭oci_connect()和oci_new_connect()连接
; http://php.net/oci8.old-oci-close-semantics
;oci8.old_oci_close_semantics = Off

[PostgreSQL]
; Allow or prevent persistent links.
;允许或防止长连接
; http://php.net/pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
;总是使用pg_pconnect()侦探崩溃的长连接。自动重置特性需要一点额外开销
; http://php.net/pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
;长连接的最大数量,-1表示无限制
; http://php.net/pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
;连接的最大数量,-1表示无限制
; http://php.net/pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
;是否忽略PostgreSQL后端通知信息,通知信息记入日志需要一些额外开销
; http://php.net/pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Notice message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
;是否记录后端通知信息。除非pgsql.ignore_notice=0,否则模块不可以记录注意信息
; http://php.net/pgsql.log-notice
pgsql.log_notice = 0

;[Sybase-CT] Sybase是美国Sybase公司研制的一种关系型数据库系统,是一种典型的UNIX或WindowsNT平台上客户机/服务器环境下的大型数据库系统。

; Allow or prevent persistent links.
;允许或禁止长连接
; http://php.net/sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;长连接的最大数量,-1表示无限制
; http://php.net/sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
;连接的最大数量(包括长连接和短连接),-1表示无限制
; http://php.net/sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
;显示的服务器信息严重性的最小量
; http://php.net/sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
;显示的客户端信息严重性的最小量
; http://php.net/sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
;设置每个上下文的超时时间
; http://php.net/sybct.timeout
;sybct.timeout=

;sybct.packet_size


; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
; Default: one minute
;一个连接返回失败前尝试去继承的最长时间(单位:秒),默认值是1分钟
;sybct.login_timeout=

; The name of the host you claim to be connecting from, for display by sp_who.
; Default: none
;你声明的连接的主机名,这个主机被sp_who用于显示。默认值:无
;sybct.hostname=

; Allows you to define how often deadlocks are to be retried. -1 means "forever".
; Default: 0
;允许你定义死锁被重新尝试的频率。-1表示永远。默认值:0
;sybct.deadlock_retry_count=

[bcmath] ;高精度数学运算
; Number of decimal digits for all bcmath functions.
;对于所有高精度数学运算函数,小数位的数目
; http://php.net/bcmath.scale
bcmath.scale = 0

[browscap]
; http://php.net/browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
;用于存储和检索数据的处理器
; http://php.net/session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;提交给给save_handler的内容提要。使用文件时,这个值是数据文件被存放的位置。注意:Windows用户为了使用PHP的session函数必须改变这个

;变量

; The path can be defined as:
;路径可以定义如:
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if
; your OS has problems with many files in one directory, and is
; a more efficient layout for servers that handle many sessions.
;这里的N是一个整型数。这会使用N层的子目录,然后将session存放在那些目录中,而不是将所有的session文件存储在/path中。这对于不能再同一

;个目录下存放许多文件的系统是有用的,并且这是一个服务器处理很多sessions更高效的设计
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
;注意1;PHP不会自动创建这个目录结构,你可以使用ext/session目录下的脚本来实现这个目的
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;注意2:如果你选择使用子目录结构存储session,你应该查看下面的垃圾回收章节
; The file storage module creates files using mode 600 by default.
;文件存储模块默认使用600模式创建文件。
; You can change that by using
;你可以使用下面的方式改变它:
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
;这里MODE是代表模式的八进制数。注意:这并不会重写处理器的掩码
; http://php.net/session.save-path
;session.save_path = "/tmp"

; Whether to use strict session mode.
; Strict session mode does not accept uninitialized session ID and regenerate
; session ID if browser sends uninitialized session ID. Strict mode protects
; applications from session fixation via session adoption vulnerability. It is
; disabled by default for maximum compatibility, but enabling it is encouraged.
;是否使用严格的session模式
;严格的session模式不接受未初始化的session ID,并且如果浏览器发送了未初始化的session ID,它会重新生成session ID。严格的模式可以防止应用

;出现session通过session采用漏洞被固定死。为了最大的兼容性它被禁止了,但是鼓励启动它。
; https://wiki.php.net/rfc/strict_sessions
session.use_strict_mode = 0

; Whether to use cookies.
;是否使用cookies
; http://php.net/session.use-cookies
session.use_cookies = 1

; http://php.net/session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combating
; session hijacking when not specifying and managing your own session id. It is
; not the be-all and end-all of session hijacking defense, but it's a good start.
;这个选项强制PHP获取并使用一个cookie用于存储和维护session ID。我们鼓励这个操作因为当你没有指定和管理你自己的session ID时对于防止

;session劫持是十分有用的。它不是完全解决session劫持的防御方法,但是是一个好的开头。
; http://php.net/session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
;session的名字(作为cookie名使用)
; http://php.net/session.name
session.name = PHPSESSID

; Initialize session on request startup.
;当请求开始时初始化session
; http://php.net/session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
;cookie的生存时间,如果设置为0,cookie生存到浏览器重启
; http://php.net/session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
;cookie的有效作用路径
; http://php.net/session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
;cookie在哪个主机上是有效的
; http://php.net/session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
;是否添加仅http协议可以访问cookie的标志,这将使浏览器脚本语言(如JavaScript)无法访问cookie
; http://php.net/session.cookie-httponly
session.cookie_httponly =

; Handler used to serialize data.  php is the standard serializer of PHP.
;用于序列化数据的处理器。php是PHP的标准序列化器。
; http://php.net/session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. 
; Default Value: 1
;定义垃圾回收处理在每个session初始化时被启动的可能性。这个可能性是由gc_probability/gc_divisor得出的。这里的等式中session.gc_probability

;是个分子而session.gc_divisor是分母。将这个值设置为1,当session.gc_divisor被设置为100时垃圾回收机制在任何请求上运行大约有1%的几率。
;默认值:1
; Development Value: 1
; Production Value: 1
; http://php.net/session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation:
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
;定义垃圾回收处理在每个session初始化时被启动的可能性。这个可能性是由gc_probability/gc_divisor得出的。这里的等式中session.gc_probability

;是个分子而session.gc_divisor是分母。将这个值设置为1,当session.gc_divisor被设置为100时垃圾回收机制在任何请求上运行大约有1%的几率。将

;这个值增加到1000会使这个可能性变成0.1%。对于大流量的生产服务器,这是一个更有效的方法。
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://php.net/session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
;在这个数字所指定的秒数后,被存储的数据将会被视为垃圾并且会被垃圾回收进程清理掉。
; http://php.net/session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          find /path/to/sessions -cmin +24 -type f | xargs rm
;注意:如果你正在使用子目录选项用来存储session文件(查看上面的session.save_path),那么垃圾回收不会自动发生。你需要通过一个shell脚

;本、定期任务或者其他方法去做自己的垃圾回收。例如,下面的脚本等价于设置session.gc_maxlifetime为1440(1440秒=24分钟):
;find /path/to/sessions -cmin +24 -type f | xargs rm
; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
;查看http Referer 来使外部存储的带有id的URLs失效。HTTP_REFERER必须包含这个子字符串才能使session被视为有效的。
; http://php.net/session.referer-check
session.referer_check =

; How many bytes to read from the file.
;应该从文件中读出多少字节。
; http://php.net/session.entropy-length
;session.entropy_length = 32

; Specified here to create the session id.
; http://php.net/session.entropy-file
; Defaults to /dev/urandom
; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
; If neither are found at compile time, the default is no entropy file.
; On windows, setting the entropy_length setting will activate the
; Windows random source (using the CryptoAPI)
;指定这里用于创建session id。默认值是/dev/urandom。在没有/dev/urandom但有/dev/arandom的系统上,这个默认值会被设置

;为/dev/arandom。如果在编译的时候也没有找到这个目录,那么默认值是没有熵文件。在windows上,设置entropy_length会激活Windows的随机

;源(使用CryptoAPI)。
;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
;设置这个值为nocache、private或者public来决定http缓存层面。或者保持这个值空白会避免发送反缓存的头部。
; http://php.net/session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
;文档在n分钟后过期。
; http://php.net/session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users' security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publicly accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
;trans sid支持默认是被禁用的。使用trans sid可能拿你的用户安全去冒险。谨慎使用这个选项。
;- 用户可能通过. email/irc/etc发送包含激活的session id的URL给其他人
;- 包含激活的session id的URL可能被存放在可以被公共访问的电脑上。
;- 用户可以使用存放在浏览器的历史和书签中的URL,并用同样的session id去访问你的网站。
; http://php.net/session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; This option may also be set to the name of any hash function supported by
; the hash extension. A list of available hashes is returned by the hash_algos()
; function.
;选择一个哈希函数用于生成session id。
;可能的值:  0  (MD5 128 bits)    1  (SHA-1 160 bits)
;这个选项也可以被设置为哈希扩展中支持的任何哈希函数的名字。hash_algos()函数会返回可用的哈希函数列表。
; http://php.net/session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;定义当转换二进制的哈希数据为可能的时候,每个字符中应该存储多少位。
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://php.net/session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
;URL重写器会在一个定义HTML标签的集合中查找URL。表单和自定义字段比较特殊。如果你在这里包含它们,重写器会添加一个带有被添加到URLs的

;信息的隐藏input字段。如果你想如果你想让XHTML一致,那么移除表单入口。注意:所有的有效入口需要一个“=”,即使后面没有值。

; 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"
; http://php.net/url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

; Enable upload progress tracking in $_SESSION
;使在$_SESSION中可以跟踪上载进度。
; Default Value: On
; Development Value: On
; Production Value: On
; http://php.net/session.upload-progress.enabled
;session.upload_progress.enabled = On

; Cleanup the progress information as soon as all POST data has been read
; (i.e. upload completed).
;在所有的POST数据被读取之后(也就是上载完成后),尽快清理进度信息。
; Default Value: On
; Development Value: On
; Production Value: On
; http://php.net/session.upload-progress.cleanup
;session.upload_progress.cleanup = On

; A prefix used for the upload progress key in $_SESSION
; Default Value: "upload_progress_"
;一个在$_SESSION用于上传进度键(key)的前缀,默认是"upload_progress_"
; Development Value: "upload_progress_"
; Production Value: "upload_progress_"
; http://php.net/session.upload-progress.prefix
;session.upload_progress.prefix = "upload_progress_"

; The index name (concatenated with the prefix) in $_SESSION
; containing the upload progress information
; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
;$_SESSION中的索引名字(与前缀相连)。它包含上传进度信息。默认值:"PHP_SESSION_UPLOAD_PROGRESS"
; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
; http://php.net/session.upload-progress.name
;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"

; How frequently the upload progress should be updated.
; Given either in percentages (per-file), or in bytes
; Default Value: "1%"
;上载进度应该被更新的频率。指定为百分比(每个文件)或者用字节,默认值为1%
; Development Value: "1%"
; Production Value: "1%"
; http://php.net/session.upload-progress.freq
;session.upload_progress.freq =  "1%"

; The minimum delay between updates, in seconds
; Default Value: 1
;更新之间的最小延迟(单位:秒),默认值为1
; Development Value: 1
; Production Value: 1
; http://php.net/session.upload-progress.min-freq
;session.upload_progress.min_freq = "1"

[MSSQL]
; Allow or prevent persistent links.
;允许或者防止持续连接
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
;持续连接的最大数量,-1代表没有限制
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
;连接的最大数量,-1表示没有限制
mssql.max_links = -1

; Minimum error severity to display.
;显示的最小的错误严重程度
mssql.min_error_severity = 10

; Minimum message severity to display.
;显示的信息最小严重程度
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
;PHP3.0版的兼容模式
mssql.compatibility_mode = Off

; Connect timeout
;连接超时
;mssql.connect_timeout = 5

; Query timeout
;执行超时
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;有效范围0 – 2147483647,默认为4096
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;有效范围0 – 2147483647,默认为4096
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;限制批处理时每批的记录的数量。0代表所有记录作为一批处理。
;mssql.batchsize = 0

; Specify how datetime and datetime columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;指定日期和日期列怎么被返回。
;On=> 返回被转换为SQL server配置的数据
;Off=> 返回YYYY-MM-DD hh:mm:ss这个格式的值
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
;当连接到服务器的时候使用NT系统的身份认证
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
;指定最大进程数,-1表示按照库默认
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set.
; If empty or not set the client charset from freetds.conf is used
; This is only used when compiled with FreeTDS
;指定客户端的字符集。如果这个设置为空,freetds.conf指定的字符集就被使用。这仅仅适用于用FreeTDS编译的时候
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://php.net/assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://php.net/assert.warning
;assert.warning = On

; Don't bail out by default.
; http://php.net/assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://php.net/assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;使用当前的error_reporting()重新计算表达式。设置为真如果你想要error_reporting(0)围绕eval()
; http://php.net/assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;包含文件的GUIDSA,IIDs或者文件名的使用类型库的文件的路径。
; http://php.net/com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
;允许分布式COM调用
; http://php.net/com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typelib on com_load()
;使用com_load()自动注册组件类型库的常量。
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
;注册大小写敏感的常量。
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
;展示复制的常量注册警告
; http://php.net/com.autoregister-verbose
;com.autoregister_verbose = true

; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
;当传递给或者从COM对象获取时,代码页使用的默认字符集
;com.code_page=

[mbstring]
; language for internal character representation.
; This affects mb_send_mail() and mbstrig.detect_order.
;内部字符代表的语言。这个设置影响mb_send_mail() 和 mbstrig.detect_order
; http://php.net/mbstring.language
;mbstring.language = Japanese

; Use of this INI entry is deprecated, use global internal_encoding instead.
; internal/script encoding.
; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
;对这个ini条目的使用不被赞成,使用全局internal_encoding代替。
;内部/脚本编码
;一些编码不可以作为内部编码使用(如 SJIS, BIG5, ISO-2022-*)。如果这个设置为空,default_charset 或者 internal_encoding 或者 ;iconv.internal_encoding就被使用,优先级是:default_charset < internal_encoding < iconv.internal_encoding
;mbstring.internal_encoding =

; Use of this INI entry is deprecated, use global input_encoding instead.
; http input encoding.
; mbstring.encoding_traslation = On is needed to use this setting.
; If empty, default_charset or input_encoding or mbstring.input is used.
; The precedence is: default_charset < intput_encoding < mbsting.http_input
;对这个ini条目的使用不被赞成,使用全局input_encoding代替。
;http输入编码
;mbstring.encoding_traslation = On就需要使用这个设置。如果这个设置为空,default_charset 或者 input_encoding 或者 mbstring.http_input

;将会被使用,优先级是:default_charset < intput_encoding < mbsting.http_input
; http://php.net/mbstring.http-input
;mbstring.http_input =

; Use of this INI entry is deprecated, use global output_encoding instead.
; http output encoding.
; mb_output_handler must be registered as output buffer to function.
; If empty, default_charset or output_encoding or mbstring.http_output is used.
; The precedence is: default_charset < output_encoding < mbstring.http_output
; To use an output encoding conversion, mbstring's output handler must be set
; otherwise output encoding conversion cannot be performed.
;对这个ini条目的使用不被赞成,使用全局output _encoding代替。
;http输出编码
;mb_output_handler必须被作为输出缓冲区注册来使用。
;如果这个设置为空,default_charset 或者 output_encoding 或者 mbstring.input将会被使用,优先级是:default_charset < output _encoding < ;mbsting.http_ output。为了使用输出编码转换,mbstring的输出处理器必须被设置,否则输出编码转换将会失效。
; http://php.net/mbstring.http-output
;mbstring.http_output =

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;根据mbstring.internal_encoding的设置启用自动编码转换,通过将这个配置设置为On,输入字符被转换为内部编码。注意:不要为轻便的

;libs/applications使用自动编码转换。
; http://php.net/mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; "auto" detect order is changed according to mbstring.language
;自动编码侦查顺序。”auto”侦查顺序会根据mbstring.language变化。
; http://php.net/mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;当字符不可以从一个被转换为另外一个时使用的替代字符
; http://php.net/mbstring.substitute-character
;mbstring.substitute_character = none

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
;使用mbstring函数重载(替换)单字节函数。mail(), ereg()等被 mb_send_mail(), mb_ereg()等重载。可能的值为0,1,2,4或者他们的组合。例如:7

;代表重载它们所有
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://php.net/mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection. 
; Default: Off
;启用严格编码侦查,默认是Off
;mbstring.strict_detection = On

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;这个指令指定mb_output_handler()被激活的文档类型的正则表达式。默认值为:

;mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;告诉jpeg解码忽略警告,并且视图创建一个gd图像。警告将会被作为提示显示出来。这个默认被禁用。
; http://php.net/gd.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]  ;Exif是一种图像文件格式,它的数据存储与JPEG格式是完全相同的
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;Exif UNICODE用户注释被作为UCS-2BE/UCS-2LE处理,而JIS作为JIS。在mbstring的支持下,当mbstring.internal_encoding被设置为空时,Exif会

;被自动的转换为相应的解码设置。由于解码设置,你可以区分摩托罗拉和英特尔的字节顺序。解码设置不能为空。

; http://php.net/exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://php.net/exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://php.net/exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://php.net/exif.encode-jis
;exif.encode_jis =

; http://php.net/exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://php.net/exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy] ;tidy 是一个整洁的HTML结合清理和修复工具
; The path to a default tidy configuration file to use when using tidy
;使用tidy工具时默认的tidy配置文件所在路径
; http://php.net/tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
;是否tidy应该自动清理和修复输出。
;警告:如果你生成如动态图像等没有html的内容,则不要使用这个选项
; http://php.net/tidy.clean-output
tidy.clean_output = Off

[soap] 简单对象访问协议
; Enables or disables WSDL caching feature.
;启用或者禁用WSDL缓存特性
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
;SOAP扩展存放缓存文件的目录
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used
; instead of original one.
;(生存时间)当缓存文件代替原始方法被使用时,设置这个秒数
; http://php.net/soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

; Sets the size of the cache limit. (Max. number of WSDL files to cache)
;设置缓存限制。(缓存WSDL文件的最大数量)
soap.wsdl_cache_limit = 5

[sysvshm] 事件驱动模块?
; A default size of the shared memory segment
;默认的共享内存段大小
;sysvshm.init_mem = 10000

[ldap] ;轻量目录访问协议
; Sets the maximum number of open links or -1 for unlimited.
;设置打开的连接的最大数,-1代表没有限制。
ldap.max_links = -1

[mcrypt] 加密扩展
; For more information about mcrypt settings see http://php.net/mcrypt-module-open

; Directory where to load mcrypt algorithms
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;加载mcrypt算法的目录
;默认值:它被编译进libmcrypt目录(通常是/usr/local/lib/libmcrypt)
;mcrypt.algorithms_dir=

; Directory where to load mcrypt modes
; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
;加载mcrypt模式的目录。
;默认值:它被编译进libmcrypt目录(通常是/usr/local/lib/libmcrypt)
;mcrypt.modes_dir=

[dba] 
;dba.default_handler=

;[opcache] OPcache通过将 PHP 脚本预编译的字节码存储到共享内存中来提升 PHP 的性能,存储预编译字节码的好处就是 省去了每次加载和解析 ;PHP 脚本的开销。
; Determines if Zend OPCache is enabled
;决定是否启用Zend OPCache
;opcache.enable=0

; Determines if Zend OPCache is enabled for the CLI version of PHP
;决定Zend OPCache是否在PHP的CLI版本启用
;opcache.enable_cli=0

; The OPcache shared memory storage size.
;OPcache共享内存大小
;opcache.memory_consumption=64

; The amount of memory for interned strings in Mbytes.
;给interned strings的总内存(单位:MB)
;opcache.interned_strings_buffer=4

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
;OPcache哈希表中键(脚本)的最大值
;opcache.max_accelerated_files=2000

; The maximum percentage of "wasted" memory until a restart is scheduled.
;直到重启之前,“浪费”的内存的最大百分比
;opcache.max_wasted_percentage=5

; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;当这个指令启用时,OPcache将当前工作目录添加到脚本键上,从而防止拥有相同名字(基名)的文件发生冲突。禁用这个指令可以改进性能,但是

;可能使存在的程序崩溃。
;opcache.use_cwd=1

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;当禁用这个选项时,你必须手动重置OPcache或者重启网络服务器,使对文件系统的改变生效。
;opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;检查用于共享内存分配的改变的文件时间戳的频率(以秒计数)。(“1”代表每秒验证一次,但是每次只验证一个请求,“0”代表总是验证)
;opcache.revalidate_freq=2

; Enables or disables file search in include_path optimization
;启用或者禁用在include_path的优化文件搜索
;opcache.revalidate_path=0

; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
;如果被禁用,所有的PHPDoc注释会从代码中被丢弃,目的是减轻优化的代码的大小。
;opcache.save_comments=1

; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
; may be always stored (save_comments=1), but not loaded by applications
; that don't need them anyway.
;如果被禁用,PHPDoc注释不会从SHM中加载,所以“Doc注释”总是会被存储(save_comments=1),但是不会被根本不需要它们的应用加载。
;opcache.load_comments=1

; If enabled, a fast shutdown sequence is used for the accelerated code
;如果启用,一个快速关机序列会被用于加速代码
;opcache.fast_shutdown=0

; Allow file existence override (file_exists, etc.) performance feature.
;允许重写存在文件(file_exists等)的性能特征。
;opcache.enable_file_override=0

; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
;一个位掩码,它的每一位启用或者禁用恰当的OPcache通路。
;opcache.optimization_level=0xffffffff

;opcache.inherited_hack=1
;opcache.dups_fix=0

; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x  blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
;OPcache黑名单列表文件所在的路径(允许使用通配符)。每个OPcache黑名单文件是一个文本文件,它包含不被加速的文件的文件名。这个文件的

;格式是将每个文件名添加到一个新行。这个文件名可以是完全路径或者只是一个前缀。以”;”开头的行是被忽略的(注释)
;opcache.blacklist_filename=

; Allows exclusion of large files from being cached. By default all files
; are cached.
;允许排除大文件被缓存。默认的,所有文件都被缓存。
;opcache.max_file_size=0

; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;每N个请求检查一次缓存校验和。“0”表示禁用这个选项
;opcache.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;如果缓存没有被访问,需要多长时间(单位:秒)等待一个计划的重启。
;opcache.force_restart_timeout=180

; OPcache error_log file name. Empty string assumes "stderr".
;OPcache记录日志的文件名。空则假定为“stderr”
;opcache.error_log=

; All OPcache errors Go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;所有的OPcache错误记录到网络服务器日志。
;默认的,只有致命错误(等级0)或者错误(等级1)被记录。
;你也可以启用警告(等级2),通知信息(等级3)或者调试信息(等级4)
;opcache.log_verbosity_level=1

; Preferred Shared Memory back-end. Leave empty and let the system decide.
;优先共享内存后端。留空则由系统决定
;opcache.preferred_memory_model=

; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;保护共享内存在脚本执行期间不被意外的写入。这只对于内部调试有用。
;opcache.protect_memory=0

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;CURLOPT_CAINFO选项的默认值。这要求是一个绝对路径
;curl.cainfo =

[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
;SSL/TLS节点的身份验证需要使用的认证授权文件在本地服务器上的位置。大部分用户不用为这个指令指定值,因为在找不到它的情况下,PHP会尝试

;使用存在系统管理的CA。如果指定,这个值也可以通过"cafile"SSL流上下文选项,在每个流一次的基础上被重写。
;openssl.cafile=

; If openssl.cafile is not specified or if the CA file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. This value must be a correctly hashed certificate directory.
; Most users should not specify a value for this directive as PHP will
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;如果openssl.cafile没有被指定或者CA文件没有被找到,将会在openssl.capath指定的目录下查找适合的证书。这个值必须是一个正确的散列证书目

;录。大部分用户不用为这个指令指定值,因为在找不到它的情况下,PHP会尝试使用存在系统管理的CA。如果指定,这个值也可以通过" capath "SSL

;流上下文选项,在每个流一次的基础上被重写。
;openssl.capath=

; Local Variables: 本地变量
; tab-width: 4
; End:

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:设置session生存时间问题

下一篇:入职第二天