-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathphp.ini
More file actions
2343 lines (1968 loc) · 95.8 KB
/
Copy pathphp.ini
File metadata and controls
2343 lines (1968 loc) · 95.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
; 关于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试图从多个位置查找并加载这个配置文件。
; 下面是它的搜索顺序的摘要:
; 1.SAPI模块指定的位置
; 2.PHPRC环境变量指定的位置
; 3.一些在windows预定义的注册表项
; 4.当前工作目录(仅适用于CLI模式)
; 5.web服务器目录(适用于SAPI模块)或PHP所在目录(Windows下其它情况)
; 6.通过--with-config-file-path编译选项指定的目录或者windows目录(c:\windows或者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下工作。
; 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找不到预期的指令,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或者M_PI),
; 一个包含(On,Off,True,False,Yes,No 和None)的INI常量或者一个表达式(如:E_ALL & ~E_NOTICE),一个引号括起的字符串("bar"),
; 或者引用之前设置的变量或者指令(例如:${foo})
; Expressions in the INI file are limited to bitwise operators and parentheses:
; | bitwise OR
; ^ bitwise XOR
; & bitwise AND
; ~ bitwise NOT
; ! boolean NOT
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
; INI文件中表达式仅使用:位运算符、逻辑非和圆括号:
; | 位或
; ^ 位异或
; & 位与
; ~ 位非
; ! 逻辑非
; 布尔标志用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:
; foo = ; sets foo to an empty string
; foo = None ; sets foo to an empty string
; foo = "None" ; sets foo to the string 'None'
; 一个空的字符串可以用在等号后不写任何东西表示,或者用none关键字:
; foo = ;将foo设为空字符串
; foo = None ;将foo设为空字符串
; foo = "None"; 将foo设为字符串'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打包时包含2个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-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-production包含设置保证安全,性能和最佳实践的核心。但是请注意,这些设置可能会打破与旧的
; 或者没有安全意识的应用程序的兼容性。我们推荐在生产或者测试环境使用php.ini-production文件。
; php.ini-development 非常类似于生产版本的变体,但当他发生错误时会展示更详细的信息。
; 我们建议仅在开发环境中使用开发版php.ini。否则应用程序的错误显示会无意中泄漏安全信息。
; This is php.ini-production INI file.
; 这是php.ini-production INI文件。
;;;;;;;;;;;;;;;;;;;
; 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.
;以下是所有的设置在production 或者development版本INI文件中关于PHP的默认行为的区别。
;请稍后参阅实际文档的更多细节,了解关于我们为什么建议这些PHP的行为。
; display_errors
; 该选项设置是否将错误信息作为输出的一部分显示到屏幕,或者对用户隐藏而不显示。
; Default Value: On
; Development Value: On
; Production Value: Off
; display_startup_errors
; 是否显示PHP启动时的错误
; 当关闭此函数时,即使 display_errors 设置为开启, PHP启动过程中的错误信息也不会被显示。
; 强烈建议除了调试目的以外,将 display_startup_errors 设置为关闭。
; Default Value: Off
; Development Value: On
; Production Value: Off
; error_reporting
; 设置应该报告何种PHP错误
; 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
; 设置是否将脚本运行的错误信息记录到服务器错误日志或者error_log之中。注意,这是与服务器相关的特定配置项
; Default Value: Off
; Development Value: On
; Production Value: On
; max_input_time
; 脚本解析输入数据(类似POST和GET)允许的最大时间,单位为秒。它从接受所有数据到开始执行脚本进行测量的。
; Default Value: -1 (Unlimited)
; 默认值:-1(表示不限制)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; output_buffering
; 输出缓冲区大小(字节)
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; register_argc_argv
; 告诉PHP是否要声明argv & argc 变量。这将要包含GET方法的信息
; Default Value: On
; Development Value: Off
; Production Value: Off
; request_order
; 这条指令描述在PHP注册GET,POST和Cookie变量到_REQUEST数组中的顺序。
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; session.gc_divisor
; 定义在每次初始化会话时,启动垃圾回收程序的概率。 session.gc_divisor 与 session.gc_probability
; 合起来定义了在每个会话初始化时启动 gc(garbage collection 垃圾回收)进程的概率
; 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
; 决定是否允许使用 PHP 代码开始标志的缩写形式(<? ?>)
; Default Value: On
; Development Value: Off
; Production Value: Off
; track_errors
; 如果开启,最后的一个错误将永远存在于变量 $php_errormsg 中
; Default Value: Off
; Development Value: On
; Production Value: Off
; url_rewriter.tags
; url_rewriter.tags 指定在使用透明 SID 支持时哪些 HTML 标记会被修改以加入会话 ID。
; 默认为 a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=。
; 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
; 设置EGPCS(Environment,Get,Post,Cookie,and Server)变量解析的顺序。
; 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"
;user_ini.filename = ".user.ini"
; To disable this feature set this option to empty value
;user_ini.filename =
; 命名用户自定义的 php.ini(.htaccess)文件。默认是".user.ini"
;user_ini.filename =".user.ini"
; 要禁用此功能,请将此选项设置为空值
;user_ini.filename =
; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
; 用户自定义php.ini文件的TTL(time-to-live)以秒为单位。默认是300秒(5分钟)
;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.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off
; 决定是否允许使用 PHP 代码开始标志的缩写形式(<? ?>)
; 该指令确定PHP是否识别在<?和?>标签之间应当被执行的PHP代码。
; 通常建议使用<?php 和 ?> 并且这个特性应该被禁用,如果启用这个特性可能在生成XML文档时产生问题,
; 然而这仍是支持向后兼容的原因。注意本指令不控制缩写形式的 "<?"标签,可以不用管这个指令
; 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.
; Note: Output buffering can also be controlled via Output Buffering Control
; functions.
; Possible Values:
; On = Enabled and buffer is unlimited. (Use with caution)
; Off = Disabled
; Integer = Enables the buffer and sets its maximum size in bytes.
; Note: This directive is hardcoded to Off for the CLI SAPI
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://php.net/output-buffering
output_buffering = 4096
; 输出缓存机制用来控制PHP在向客户端输出数据(不包括headers和cookies)之前应当缓存多少数据。
; 如果你的应用程序输出超过了这个设置值,PHP将要发送大致如你指定大小的数据块。
; 打开这个设置并管理缓冲的最大值,根据你的应用程序和Web服务器可能会产生一些有意思的副作用。
; 你可以在已经通过print或者echo输出正文内容后,再发送headers和cookies。
; 你也可以看到性能优势,如果你的服务器由于缓存输出而减少的网络数据包发送。在生产环境上,
; 出于性能原因考虑4096字节是一个很好的设置。
; 注意:缓存输出也可以通过缓存控制函数控制。
; 可能的值:
; On = 启用并且缓存是无限的(小心使用)
; Off = 禁用
; 数值 = 启用缓存并且设置最大值,单位为字节
; 注意: 该选项在 CLI SAPI 下总是为 Off
; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
; directive. Instead, explicitly set the output handler using ob_start().
; Using this ini directive may cause problems unless you know what script
; is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
; Instead you must use zlib.output_handler.
; http://php.net/output-handler
;output_handler =
; 你可以将脚本的所有输出重定向到一个函数。例如:将output_handler设置为"mb_output_handler"
; 函数,字符的编码将被修改为指定的编码。设置的任何处理函数,将自动的处理输出缓冲。
; 注意: 如果是可移植的脚本就不应该依赖ini中的指令。相反,显式地设置输出处理程序使用ob_start()函数。
; 使用这个ini指令可能会导致问题,除非你知道脚本在干什么。
; 注意:不能同时使用 mb_output_handler() 和 ob_iconv_handler(),也不能同时使用 ob_gzhandler()
; 和 zlib.output_compression()。
; 注意:如果使用zlib.output_handler指令开启zlib输出压缩,该指令必须为空!!!
; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
; outputs chunks that are few hundreds bytes each as a result of
; compression. If you prefer a larger chunk size for better
; performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
; output_handler, or otherwise the output will be corrupted.
; http://php.net/zlib.output-compression
zlib.output_compression = Off
; 使用zlib库实现透明的输出压缩,这个选项的有效值是'off','on'或者是字节数(用于压缩缓冲区大小,默认值是4KB)
; 注意:由于压缩性质的不同可能导致结果块的大小不同。PHP输出块是每个压缩结果几百字节的。
; 如果你为了性能更喜欢更大字节的块,另外启用zlib.output_handler。
; 注意:你需要使用zlib.output_handler代替标准的
; 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是启用的,你不能指定附加输出handlers。这个设置和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.
; http://php.net/implicit-flush
; Note: This directive is hardcoded to On for the CLI SAPI
; 控制PHP输出层是否在每个输出块之后自动刷新数据。该参数等同于在调用print(),echo(),html块
; 之后再调用flush()函数。打开这个选项对程序执行有严重的性能影响。通常只推荐在调试时启用。
; 注意:在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 = 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. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/open-basedir
; 如果设置该参数,将PHP所能打开的文件限制在指定的目录树,包括文件本身。
; 该指令最有意义的使用是按每个目录或者按不同虚拟主机Web服务器的配置文件。
; 本指令不受安全模式打开或者关闭的影响。
; Note:
; 当一个脚本试图用例如 fopen() 或者 gzopen() 打开一个文件时,该文件的位置将被检查。
; 当文件在指定的目录树之外时 PHP 将拒绝打开它。
; 所有的符号连接都会被解析,所以不可能通过符号连接来避开此限制。
; 特殊值 . 指明脚本的工作目录将被作为基准目录。
; 但这有些危险,因为脚本的工作目录可以轻易被 chdir() 而改变。
; 在 httpd.conf 文件中中,open_basedir 可以像其它任何配置选项一样用“php_admin_value open_basedir none”的方法关闭(例如某些虚拟主机中)。
; 在 Windows 中,用分号分隔目录。在任何其它系统中用冒号分隔目录。作为 Apache 模块时,父目录中的 open_basedir 路径自动被继承。
; 用 open_basedir 指定的限制实际上是前缀,不是目录名。
; 也就是说“open_basedir = /dir/incl”也会允许访问“/dir/include”和“/dir/incls”,如果它们存在的话。
; 如果要将访问限制在仅为指定的目录,用斜线结束路径名。例如:“open_basedir = /dir/incl/”。
; 不要完全依赖此参数,php可以绕过此参数并列举目录等
;open_basedir =
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-functions
; 本指令允许你基于安全原因禁止某些函数。接受逗号分隔的函数名列表作为参数。
; disable_functions 不受安全模式的影响。 本指令只能设置在 php.ini 中。
; 例如不能将其设置在 httpd.conf。
disable_functions =
; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/disable-classes
; 本指令可以使你出于安全的理由禁用某些类。用逗号分隔类名。
; disable_classes 不受安全模式的影响。
; 本指令只能设置在 php.ini 中。例如不能将其设置在 httpd.conf。
disable_classes =
; Colors for Syntax Highlighting mode. Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://php.net/syntax-highlighting
; 语法高亮的颜色。可设置为 <font color="??????"> 中任何可接受的代码。
;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.
; http://php.net/ignore-user-abort
; 如果启用,即使在用户中止请求后也坚持完成整个请求。
; 在执行一个长请求的时候应当考虑打开该它,因为长请求可能会导致用户中途中止或浏览器超时。
; PHP默认禁用此指令。
;ignore_user_abort = On
; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://php.net/realpath-cache-size
; 指定PHP使用的realpath(规范化的绝对路径名)缓冲区大小。
; 在PHP打开大量文件的系统上应当增大该值以提高性能。
;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.
; http://php.net/realpath-cache-ttl
; 指定PHP使用的realpath(规范化的绝对路径名)缓冲区大小。
; 在PHP打开大量文件的系统上应当增大该值以提高性能。
;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.
; 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.
; 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.
; http://php.net/expose-php
; 是否暴露PHP被安装在服务器上的事实(在http头中加上其签名) 。
; 它不会有安全上的直接威胁,但它使得客户端知道服务器上安装了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)运行 PHP 时,默认设置为 0(无限值)。
; 这有助于防止写得不好的脚本占尽服务器资源。 默认设置为 30。
; 在 安全模式 下你不能通过 ini_set() 来修改此设置。
; 唯一的解决方法是关闭安全模式或者在 php.ini 中修改时间限制。
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
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
; 每个脚本解析输入数据(类似 POST 和 GET)允许的最大时间(单位为秒)。这是一个限制生产服务器上运行的时间,
; 用来终止长时间运行的异常脚本的好方法。
; 注意: 命令行(CLI SAPI)模式下默认为-1
; 默认值:-1(无限制)
; 开发下默认值为:60(秒)
; 生产下默认值为:60(秒)
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)
; http://php.net/memory-limit
; 一个脚本所能够申请到的最大内存字节数
; 注意:
; 这有助于防止写得不好的脚本消耗服务器上所有可用的内存。需要注意的是有没有内存限制,设置这个指令为-1。
; K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0) 。不区分大小写。
; 转换单位为1024。
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.
; 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代码中的错误,警告和通知。
; 设定该值的推荐的方法是通过使用错误级别常量和位运算符。
; 下面列出了错误级别常量以及一些常见的设置和他们所代表的意思。
; 默认情况下,PHP被设置为显示所有除了那些和E_NOTICE,E_STRICT有关错误,通知和警告,这是最佳实践和推荐的PHP标准编码。
; 处于性能方面的考虑,这是推荐的错误报告设置。
;
; Error Level Constants:
; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
; 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)
;
; 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
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; 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
; E_USER_DEPRECATED - user-generated deprecation warnings
; E_ALL - 所有错误和警告(包括从PHP 5.4.0起也包括E_STRICT)
; E_ERROR - 致命的运行时错误。这类错误一般是不可恢复的情况,例如内存分配导致的问题。后果是导致脚本终止不再继续运行。
; E_RECOVERABLE_ERROR - 可被捕捉的致命错误。 它表示发生了一个可能非常危险的错误,但是还没有导致PHP引擎处于不稳定的状态。
;如果该错误没有被用户自定义句柄捕获 (参见 set_error_handler() ),将成为一个E_ERROR从而脚本会终止运行。
; E_WARNING - 运行时警告 (非致命错误)。仅给出提示信息,但是脚本不会终止运行。
; E_PARSE - 编译时语法解析错误。解析错误仅仅由分析器产生。
; E_NOTICE - 运行时通知。表示脚本遇到可能会表现为错误的情况,但是在可以正常运行的脚本里面也可能会有类似的通知。
; E_STRICT - 启用 PHP 对代码的修改建议,以确保代码具有最佳的互操作性和向前兼容性。
; E_CORE_ERROR - PHP初始化启动过程中发生的致命错误。该错误类似 E_ERROR ,但是是由PHP引擎核心产生的
; E_CORE_WARNING - PHP初始化启动过程中发生的警告 (非致命错误) 。类似 E_WARNING ,但是是由PHP引擎核心产生的。
; E_COMPILE_ERROR - 致命编译时错误。类似 E_ERROR , 但是是由Zend脚本引擎产生的。
; E_COMPILE_WARNING - 编译时警告 (非致命错误)。类似 E_WARNING ,但是是由Zend脚本引擎产生的。
; E_USER_ERROR - 用户产生的错误信息。类似 E_ERROR , 但是是由用户自己在代码中使用PHP函数 trigger_error() 来产生的。
; E_USER_WARNING - 用户产生的警告信息。类似 E_WARNING , 但是是由用户自己在代码中使用PHP函数 trigger_error() 来产生的。
; E_USER_NOTICE - 用户产生的通知信息。类似 E_NOTICE , 但是是由用户自己在代码中使用PHP函数 trigger_error() 来产生的。
; E_DEPRECATED - 运行时通知。启用后将会对在未来版本中可能无法正常工作的代码给出警告。
;
; 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)
; 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
; 常用值:
; E_ALL(报告所有的错误,警告和通知包括编码标准)
; E_ALL & ~E_NOTICE (报告除了通知外的所有错误)
; E_ALL & ~E_NOTICE & ~E_STRICT (报告除了通知和编码规范警告外的所有错误)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (仅报告错误)
; 开发环境默认值: E_ALL
; 生产环境默认值: E_ALL & ~E_DEPRECATED & ~E_STRICT
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.
; 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
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
; 该指令控制着PHP是否会输出错误,通知和警告。在开发环境下错误的输出是非常有用的,但是在生产环境下,
; 这是非常危险的。根据引发错误的代码,有可能泄漏您应用程序的敏感信息,比如数据库的用户名和密码或者更糟。
; 对于生产环境,我们建议记录错误,而不输出错误。
; 可能值:
; Off = 不显示任何错误
; stderr = 在STDERR显示错误(仅影响CGI/CLI)
; On or stdout = 输出错误(STDOUT)
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.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/display-startup-errors
; 在PHP启动时发生的错误时是和display_errors分开处理的(即使 display_errors 设置为开启,
; PHP 启动过程中的错误信息也不会被显示)。PHP默认是抑制来自客户端的错误。
; 在调试配置问题时打开此选项是非常有用的。在生产环境上我们强烈推荐关闭此选项。
; 默认值: Off
; 开发环境: On
; 生产环境: Off
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.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://php.net/log-errors
; 除了显示错误,PHP可以记录错误日志到服务器日志,STDERR或者下面将要提到的error_log指令中配置的文件中。
; 在生产系统中,强烈建议你使用错误日志记录web站点上显示的错误信息。
; 默认值: Off
; 开发环境: On
; 生产环境: On
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.
; http://php.net/log-errors-max-len
; 设置 log_errors 的最大字节数。在 error_log 会添加有关错误源的信息。
; 默认值为1024,如果设置为0表示不限长度。
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.
; http://php.net/ignore-repeated-errors
; 不记录重复的信息。重复的错误必须出现在同一个文件中的同一行代码上,除非 ignore_repeated_source 设置为true。
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.
; 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
; http://php.net/report-memleaks
; 如果这个参数设置为Off,则内存泄露信息不会显示 (在 stdout 或者日志中)。
; 这只对调试编译有效,而且需要 error_reporting 包含了 E_WARNING 才会起作用
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.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/track-errors
; 如果开启,最后的一个错误将永远存在于变量 $php_errormsg 中。在开发中可以开启协助调试。在生产中就要关闭。
track_errors = Off
; Turn off normal error reporting and emit XML-RPC error XML
; http://php.net/xmlrpc-errors
; 关闭正常的错误报告,并将错误的格式设置为XML-RPC错误信息的格式。
;xmlrpc_errors = 0
; An XML-RPC faultCode
; 用作 XML-RPC faultCode元素的值。
;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
; Default Value: On
; Development Value: On
; Production value: On
; http://php.net/html-errors
; 当PHP显示或记录错误,格式化错误消息为HTML格式使其更容易阅读。该指令控制错误消息是否格式化为HTML。
; 在生产环境中要关闭此项。这种新的HTML格式的错误信息是可以点击,
; 它引导用户前往描述该错误或者导致该错误发生的函数的参考信息页面。
; 这些参考与 docref_root 和 docref_ext 的设置有关。
; 备注:该选项在 CLI SAPI 下总是为 Off
; 默认值: On
; 开发环境: On
; 生产环境: On
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.
; http://php.net/docref-root
; Examples
; 如果html_errors设置为On 并且 docref_root 不为空,那么PHP产生可以点击的错误信息,
; 该页面对错误进行具体描述,或者描述了导致该错误发生的函数。
; 为了提供手册的页面,你可以在PHP官方站点下载对应语言的手册,并在ini中设置网址到本地对应的地址。
; 如果你的本地手册拷贝可以使用"/manual/" 访问,你就可以简单的设置 docref_root=/manual/ 。
; 另外你还需要设置 docref_ext 匹配你本地文件的后缀名 docref_ext=.html 。当然也可以设置一个外部的参考地址。
; 通常需要在 docref_root 后面以 "/"结尾
; 注意: 在生产环境中不要使用此指令
;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.
; http://php.net/error-prepend-string
; Example:
; 错误信息之前输出的内容。PHP默认值为空。
;error_prepend_string = "<span style='color: #ff0000'>"
; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://php.net/error-append-string
; Example:
; 错误信息之后输出的内容。PHP默认值为空。
;error_append_string = "</span>"
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on Windows).
; 设置脚本错误将被记录到的文件。PHP 默认值为空
; syslog 将错误信息发送到系统日志记录器
;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 "&".
; http://php.net/arg-separator.output
; Example:
; PHP所产生的URL中用来分隔参数的分隔符。
; PHP默认设置是"&"
;arg_separator.output = "&"
; 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!
; http://php.net/arg-separator.input
; Example:
; PHP解析URL中的变量时使用的分隔符列表。
; 字符串中的每一个字符都会被当作分割符。
; 另外还可以用",&"等等。
;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.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://php.net/variables-order
; 这个指令决定当PHP启动时那个超全局数据的注册。G,P,C,E & S是下面超全局变量GET,POST,COOKIE,ENV和SERVER的缩写。
; 注册这些数据有性能损失,因为ENV不想其他通用,ENV不推荐在生产环境中使用。
; 你可以使用getenv()函数访问环境变量。
; 按从左到右注册,新值覆盖旧值。
; 举例说,设为"GP"将会导致用POST变量覆盖同名的GET变量,
; 并完全忽略 Environment, Cookie, Server 变量。
variables_order = "GPCS"
; This directive determines which super global data (G,P,C,E & S) 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.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://php.net/request-order
; 该指令决定那个超全局数据(G,P,C,E & S)应该被注册到超全局数组REQUEST中。如果有,它还决定了数据的填充顺序。
; 该指令和variables_order指令一样,只有一个除外。如果这个指令值为空,PHP将使用variables_order指令的值。
; 而QEQUEST不会为空。
; 默认值: None
; 开发环境:"GP"
; 生产环境:"GP"
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
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/register-argc-argv
; 这个指令决定每次运行时PHP是否注册$argv和$argc。当脚本被调用时,$argc包含一个传递给PHP的所有参数的数组。
; $argc包含一个整型的代表参数个数的数字。在命令行模式下,这些数组是非常有用的。当这个指令启用时,
; 每次脚本执行都需要消耗CPU和内存来注册这些变量。出于性能的考虑,在生产环境中,这个指令应该被禁用。
; 注意: 在CLI SAPI的执行模式下,该指令默认为On
; 默认值: On
; 开发模式: Off
; 生产模式: Off
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.
; http://php.net/auto-globals-jit
; 当启用此指令,$_ENV,$_REQUEST和$_SERVER变量是在使用是才创建,而不是在脚本启动是自动创建。
; 如果并未在脚本中使用这几个数组,打开该指令将会获得性能上的提升。
; 要想该指令生效,必须关闭register_argc_argv指令。
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.
; http://php.net/enable-post-data-reading
; PHP是否读取POST数据
; 此指令默认是开启的
; 极有可能,你不会想要在全局范围内禁用该选项。它会导致$_ POST和$_FILES永远是空的;你将能够读取的唯一途径
; POST数据将通过php://input流。这可能是有用的代理请求或处理POST数据内存效率的方式。
;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.
; http://php.net/post-max-size
; 允许的POST数据最大字节长度。设置为0禁用限制。如果通过enable_post_data_reading禁用POST数据的读取,此项会忽略。
; 此设定也影响到文件上传。要上传大文件,该值必须大于upload_max_filesize指令的值。
; 如果启用了内存限制,那么该值应当小于memory_limit指令的值。如果POST数据超出限制,那么$_POST和$_FILES将会为空。
post_max_size = 8M
; Automatically add files before PHP document.
; http://php.net/auto-prepend-file
; 指定在主文件之前自动解析的文件名
; 该文件就像调用了include()函数被包含进来一样,因此会使用include_path指令的值
auto_prepend_file =
; Automatically add files after PHP document.
; http://php.net/auto-append-file
; 指定在主文件之后自动解析的文件名
; 该文件就像调用了include()函数被包含进来一样,因此会使用include_path指令的值
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将输出一个字符编码使用Content-type: header。禁用发送字符集,则简单把它设置为空。
;
; PHP's built-in default is text/html
; PHP内置默认是text/html
; http://php.net/default-mimetype
default_mimetype = "text/html"
; PHP's default character set is set to empty.
; http://php.net/default-charset
; PHP默认字符设置为空
default_charset = "UTF-8"
; PHP internal character encoding is set to empty.
; If empty, default_charset is used.
; http://php.net/internal-encoding
; PHP内部字符编码设置为空。如果此指令为空,则使用default_charset指令值。
;internal_encoding =
; PHP input character encoding is set to empty.
; http://php.net/input-encoding
; PHP输入字符编码设置为空
;input_encoding =
; PHP output character encoding is set to empty.
; mbstring or iconv output handler is used.
; See also output_buffer.