php.ini 中文版第三部分(语言选项)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 译者 : 松风(silvester) ;
; Email : sf.beyond@Gmail.com ;
; Home : hi.baidu.com/ccex ;
; Info : php.ini-recommended(5.2.8) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Language Options 语言选项 ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Enable the PHP scripting language engine under Apache.
; 启用PHP语言引擎
engine = On
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
; 启用与Zend Engine 1(PHP 4.x)的兼容模式
zend.ze1_compatibility_mode = Off
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
; 允许使用<?标签. 否则, 只能使用<?php 和 <script>.
; <script language="php">
; echo '这是PHP3.0时的一种风格';
; </script>
; 备注: 在开发应用程序或库时不要使用短标签, 或者部属PHP的服务器不归你管理时也
; 不要使用短标签, 因为短标签也许不能支持目标服务器, 为了构建可移植的, 可重复
; 使用的代码, 就要确保不使用短标签.
short_open_tag = Off
; Allow ASP-style <% %> tags.
; 允许使用ASP风格的标签.
asp_tags = Off
; The number of significant digits displayed in floating point numbers.
; 浮点数的显示位数
precision = 14
; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; 强制2000年问题的兼容(非兼容的浏览器将产生问题)
y2k_compliance = On
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
; 输出缓存允许你在发送了主体内容之后在发送头信息(包括cookies),它的代价是稍稍
; 减少PHP的数据输出效率. 在整个程序运行期间都可以通过调用输出缓存控制函数启用
; 输出缓存.另外你能设置这个配制项让所有的程序文件都启用输出缓存控制. 你可以
; 指定一个值(字节)作为输出缓存的固定大小, 也可以设为On.
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.
; 你能重定向所有的输出到你指定的函数, 例如: 如果你设置输出处理函数为
; "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.
; 备注: 如果考虑到代码的移植性就不要依赖这个配制项的设置, 作为替代可以
; 通过使用ob_start()显示进行设置. 使用ini配制可能会导致出现问题时
; 你确不知道是哪段代码产生的.
;
; 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.
;
;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)
; PHP的输出压缩使用zlib库, 通过off或on决定是否启用, 或者设定可使用的压缩缓存
; 大小的值.
;
; 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,否则输出将发生问题.
;
zlib.output_compression = Off
;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, 这个设置和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(). 打开这个配制项会严重影响性能,
; 通常推荐在调试时打开它.
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.
; 当float或double需要进行序列化存储时此serialize_precision用来指定它的有效浮点
; 位数, 当前缺省值保证了float或double能够被正确的解序列化,数据不会发生变化.
serialize_precision = 100
; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
; 是否启用在调用函数时强制将参数的引用传递给函数的功能,这个方法是不鼓励的, 并且
; 在未来的PHP/Zend的版本中可能将不被支持, 鼓励在函数定义时即指定哪些参数是需要
; 引用传递的, 你最好尝试将它设为Off并保证自己的代码能正确的工作以适应未来版本的
; 特性(你会在每一次执行时收到一个警告, 这时的参数会传递值而不是引用).
allow_call_time_pass_reference = Off
; 译者 : 松风(silvester) ;
; Email : sf.beyond@Gmail.com ;
; Home : hi.baidu.com/ccex ;
; Info : php.ini-recommended(5.2.8) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Language Options 语言选项 ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Enable the PHP scripting language engine under Apache.
; 启用PHP语言引擎
engine = On
; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
; 启用与Zend Engine 1(PHP 4.x)的兼容模式
zend.ze1_compatibility_mode = Off
; Allow the <? tag. Otherwise, on
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable co
; be sure not to use short tags.
; 允许使用<?标签. 否则, 只能使用<?php 和 <script>.
; <script language="php">
; echo '这是PHP3.0时的一种风格';
; </script>
; 备注: 在开发应用程序或库时不要使用短标签, 或者部属PHP的服务器不归你管理时也
; 不要使用短标签, 因为短标签也许不能支持目标服务器, 为了构建可移植的, 可重复
; 使用的代码, 就要确保不使用短标签.
short_open_tag = Off
; Allow ASP-style <% %> tags.
; 允许使用ASP风格的标签.
asp_tags = Off
; The number of significant digits displayed in floating point numbers.
; 浮点数的显示位数
precision = 14
; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; 强制2000年问题的兼容(非兼容的浏览器将产生问题)
y2k_compliance = On
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
; 输出缓存允许你在发送了主体内容之后在发送头信息(包括cookies),它的代价是稍稍
; 减少PHP的数据输出效率. 在整个程序运行期间都可以通过调用输出缓存控制函数启用
; 输出缓存.另外你能设置这个配制项让所有的程序文件都启用输出缓存控制. 你可以
; 指定一个值(字节)作为输出缓存的固定大小, 也可以设为On.
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.
; 你能重定向所有的输出到你指定的函数, 例如: 如果你设置输出处理函数为
; "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.
; 备注: 如果考虑到代码的移植性就不要依赖这个配制项的设置, 作为替代可以
; 通过使用ob_start()显示进行设置. 使用ini配制可能会导致出现问题时
; 你确不知道是哪段代码产生的.
;
; 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.
;
;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)
; PHP的输出压缩使用zlib库, 通过off或on决定是否启用, 或者设定可使用的压缩缓存
; 大小的值.
;
; 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,否则输出将发生问题.
;
zlib.output_compression = Off
;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, 这个设置和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 on
; 隐式刷新会让PHP通知输出层在每次输出缓存后自动刷新, 这相当于在每次调用print()
; ,echo()或每个HTML块后在调用PHP函数flush(). 打开这个配制项会严重影响性能,
; 通常推荐在调试时打开它.
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 on
; 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 da
; 当float或double需要进行序列化存储时此serialize_precision用来指定它的有效浮点
; 位数, 当前缺省值保证了float或double能够被正确的解序列化,数据不会发生变化.
serialize_precision = 100
; Whether to enable the ability to force arguments to be passed by reference
; at function call time. This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend. The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration. You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
; 是否启用在调用函数时强制将参数的引用传递给函数的功能,这个方法是不鼓励的, 并且
; 在未来的PHP/Zend的版本中可能将不被支持, 鼓励在函数定义时即指定哪些参数是需要
; 引用传递的, 你最好尝试将它设为Off并保证自己的代码能正确的工作以适应未来版本的
; 特性(你会在每一次执行时收到一个警告, 这时的参数会传递值而不是引用).
allow_call_time_pass_reference = Off
浙公网安备 33010602011771号