Skip to content

Commit e0669bf

Browse files
author
Eric Stewart
committed
1. Involves an mbstring setting correction regarding:
http://marc.info/?l=php-cvs&m=123596904426621&w=2 2. Added mbstring.http_output_conv_mimetype directive. 3. Adds an additional comment including XOR in the list of usable bitwise operators. 4. Note regarding the merge of E_STRICT into E_ALL in PHP 6.0.0. 5. Notes regarding [PATH] and [HOST] use in CGI/FastCGI.
1 parent 03a27e3 commit e0669bf

File tree

2 files changed

+47
-13
lines changed

2 files changed

+47
-13
lines changed

php.ini-development

+24-7
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,32 @@
2222
; The syntax of the file is extremely simple. Whitespace and Lines
2323
; beginning with a semicolon are silently ignored (as you probably guessed).
2424
; Section headers (e.g. [Foo]) are also silently ignored, even though
25-
; they might mean something in the future. The exceptions to this rule are
26-
; section headers starting with [HOST= or [PATH=
25+
; they might mean something in the future.
26+
27+
; Directives following the section heading [PATH=/www/mysite] only
28+
; apply to PHP files in the /www/mysite directory. Directives
29+
; following the section heading [HOST=www.example.com] only apply to
30+
; PHP files served from www.example.com. Directives set in these
31+
; special sections cannot be overridden by user-defined INI files or
32+
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
33+
; CGI/FastCGI.
2734
; http://www.php.net/manual/en/ini.sections.php
2835

2936
; Directives are specified using the following syntax:
3037
; directive = value
3138
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
39+
; Directives are variables used to configure PHP or PHP extensions.
40+
; There is no name validation. If PHP can't find an expected
41+
; directive because it is not set or is mistyped, a default value will be used.
3242

3343
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
3444
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
35-
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
45+
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
46+
; previously set variable or directive (e.g. ${foo})
3647

3748
; Expressions in the INI file are limited to bitwise operators and parentheses:
3849
; | bitwise OR
50+
; ^ bitwise XOR
3951
; & bitwise AND
4052
; ~ bitwise NOT
4153
; ! boolean NOT
@@ -461,7 +473,7 @@ memory_limit = 128M
461473
; development and early testing.
462474
;
463475
; Error Level Constants:
464-
; E_ALL - All errors and warnings (doesn't include E_STRICT)
476+
; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
465477
; E_ERROR - fatal run-time errors
466478
; E_RECOVERABLE_ERROR - almost fatal run-time errors
467479
; E_WARNING - run-time warnings (non-fatal errors)
@@ -916,7 +928,7 @@ default_socket_timeout = 60
916928
;
917929
; extension=/path/to/extension/msql.so
918930
;
919-
; If you only provide the name of the extension, PHP will look for it in it's
931+
; If you only provide the name of the extension, PHP will look for it in its
920932
; default extension directory.
921933
;
922934
; Windows Extensions
@@ -1075,7 +1087,7 @@ smtp_port = 25
10751087
mail.add_x_header = On
10761088

10771089
; Log all mail() calls including the full path of the script, line #, to address and headers
1078-
mail.log =
1090+
;mail.log =
10791091

10801092
[SQL]
10811093
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
@@ -1678,7 +1690,12 @@ mssql.secure_connection = Off
16781690
;mbstring.func_overload = 0
16791691

16801692
; enable strict encoding detection.
1681-
;mbstring.strict_encoding = Off
1693+
;mbstring.strict_detection = Off
1694+
1695+
; This directive specifies the regex pattern of content types for which mb_output_handler()
1696+
; is activated.
1697+
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1698+
;mbstring.http_output_conv_mimetype=
16821699

16831700
[gd]
16841701
; Tell the jpeg decode to ignore warnings and try to create

php.ini-production

+23-6
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,32 @@
2222
; The syntax of the file is extremely simple. Whitespace and Lines
2323
; beginning with a semicolon are silently ignored (as you probably guessed).
2424
; Section headers (e.g. [Foo]) are also silently ignored, even though
25-
; they might mean something in the future. The exceptions to this rule are
26-
; section headers starting with [HOST= or [PATH=
25+
; they might mean something in the future.
26+
27+
; Directives following the section heading [PATH=/www/mysite] only
28+
; apply to PHP files in the /www/mysite directory. Directives
29+
; following the section heading [HOST=www.example.com] only apply to
30+
; PHP files served from www.example.com. Directives set in these
31+
; special sections cannot be overridden by user-defined INI files or
32+
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
33+
; CGI/FastCGI.
2734
; http://www.php.net/manual/en/ini.sections.php
2835

2936
; Directives are specified using the following syntax:
3037
; directive = value
3138
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
39+
; Directives are variables used to configure PHP or PHP extensions.
40+
; There is no name validation. If PHP can't find an expected
41+
; directive because it is not set or is mistyped, a default value will be used.
3242

3343
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
3444
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
35-
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
45+
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
46+
; previously set variable or directive (e.g. ${foo})
3647

3748
; Expressions in the INI file are limited to bitwise operators and parentheses:
3849
; | bitwise OR
50+
; ^ bitwise XOR
3951
; & bitwise AND
4052
; ~ bitwise NOT
4153
; ! boolean NOT
@@ -461,7 +473,7 @@ memory_limit = 128M
461473
; development and early testing.
462474
;
463475
; Error Level Constants:
464-
; E_ALL - All errors and warnings (doesn't include E_STRICT)
476+
; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
465477
; E_ERROR - fatal run-time errors
466478
; E_RECOVERABLE_ERROR - almost fatal run-time errors
467479
; E_WARNING - run-time warnings (non-fatal errors)
@@ -916,7 +928,7 @@ default_socket_timeout = 60
916928
;
917929
; extension=/path/to/extension/msql.so
918930
;
919-
; If you only provide the name of the extension, PHP will look for it in it's
931+
; If you only provide the name of the extension, PHP will look for it in its
920932
; default extension directory.
921933
;
922934
; Windows Extensions
@@ -1678,7 +1690,12 @@ mssql.secure_connection = Off
16781690
;mbstring.func_overload = 0
16791691

16801692
; enable strict encoding detection.
1681-
;mbstring.strict_encoding = Off
1693+
;mbstring.strict_detection = Off
1694+
1695+
; This directive specifies the regex pattern of content types for which mb_output_handler()
1696+
; is activated.
1697+
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1698+
;mbstring.http_output_conv_mimetype=
16821699

16831700
[gd]
16841701
; Tell the jpeg decode to ignore warnings and try to create

0 commit comments

Comments
 (0)