]> TLD Linux GIT Repositories - packages/php.git/blob - php-ini.patch
- disable short open tags by default
[packages/php.git] / php-ini.patch
1 --- php-5.4.18/php.ini  2013-08-14 05:47:24.000000000 +0000
2 +++ php-5.4.18/php.ini  2013-08-19 12:11:57.755000043 +0000
3 @@ -82,6 +82,20 @@
4  ; much more verbose when it comes to errors. We recommending using the
5  ; development version only in development environments as errors shown to
6  ; application users can inadvertently leak otherwise secure information.
7 +;
8 +; This is the default settings file for new PHP installations from
9 +; TLD Linux.
10 +;
11 +; It's based mainly on php.ini-production, but with some changes made with
12 +; security in mind (see below, consult also http://php.net/manual/en/security.php).
13 +;
14 +; Please note, that in TLD installations /etc/php/php.ini file
15 +; contains global settings for all SAPIs (cgi, cli, apache...),
16 +; and after reading this file, SAPI-specific file (/etc/php/php-cgi-fcgi.ini,
17 +; /etc/php/php-cli.ini, /etc/php/php-apache.ini...) is INCLUDED
18 +; (so you don't have to duplicate whole large file to override only
19 +; few options)
20 +
21  
22  ;;;;;;;;;;;;;;;;;;;
23  ; Quick Reference ;
24 @@ -157,7 +171,7 @@
25  ;   Production Value: 5
26  
27  ; short_open_tag
28 -;   Default Value: On
29 +;   Default Value: Off
30  ;   Development Value: Off
31  ;   Production Value: Off
32  
33 @@ -372,7 +386,7 @@
34  ; threat in any way, but it makes it possible to determine whether you use PHP
35  ; on your server or not.
36  ; http://php.net/expose-php
37 -expose_php = On
38 +expose_php = Off
39  
40  ;;;;;;;;;;;;;;;;;;;
41  ; Resource Limits ;
42 @@ -725,7 +739,7 @@
43  
44  ; Directory in which the loadable extensions (modules) reside.
45  ; http://php.net/extension-dir
46 -; extension_dir = "./"
47 +;extension_dir = "/usr/lib/php"
48  ; On windows:
49  ; extension_dir = "ext"
50  
51 @@ -735,53 +749,6 @@
52  ; http://php.net/enable-dl
53  enable_dl = Off
54  
55 -; cgi.force_redirect is necessary to provide security running PHP as a CGI under
56 -; most web servers.  Left undefined, PHP turns this on by default.  You can
57 -; turn it off here AT YOUR OWN RISK
58 -; **You CAN safely turn this off for IIS, in fact, you MUST.**
59 -; http://php.net/cgi.force-redirect
60 -;cgi.force_redirect = 1
61 -
62 -; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
63 -; every request. PHP's default behavior is to disable this feature.
64 -;cgi.nph = 1
65 -
66 -; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
67 -; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
68 -; will look for to know it is OK to continue execution.  Setting this variable MAY
69 -; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
70 -; http://php.net/cgi.redirect-status-env
71 -;cgi.redirect_status_env =
72 -
73 -; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
74 -; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
75 -; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
76 -; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
77 -; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
78 -; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
79 -; http://php.net/cgi.fix-pathinfo
80 -;cgi.fix_pathinfo=1
81 -
82 -; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
83 -; security tokens of the calling client.  This allows IIS to define the
84 -; security context that the request runs under.  mod_fastcgi under Apache
85 -; does not currently support this feature (03/17/2002)
86 -; Set to 1 if running under IIS.  Default is zero.
87 -; http://php.net/fastcgi.impersonate
88 -;fastcgi.impersonate = 1
89 -
90 -; Disable logging through FastCGI connection. PHP's default behavior is to enable
91 -; this feature.
92 -;fastcgi.logging = 0
93 -
94 -; cgi.rfc2616_headers configuration option tells PHP what type of headers to
95 -; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
96 -; is supported by Apache. When this option is set to 1 PHP will send
97 -; RFC2616 compliant header.
98 -; Default is zero.
99 -; http://php.net/cgi.rfc2616-headers
100 -;cgi.rfc2616_headers = 0
101 -
102  ;;;;;;;;;;;;;;;;
103  ; File Uploads ;
104  ;;;;;;;;;;;;;;;;
105 @@ -858,52 +825,9 @@
106  ;
107  ; If you only provide the name of the extension, PHP will look for it in its
108  ; default extension directory.
109 -;
110 -; Windows Extensions
111 -; Note that ODBC support is built in, so no dll is needed for it.
112 -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
113 -; extension folders as well as the separate PECL DLL download (PHP 5).
114 -; Be sure to appropriately set the extension_dir directive.
115 -;
116 -;extension=php_bz2.dll
117 -;extension=php_curl.dll
118 -;extension=php_fileinfo.dll
119 -;extension=php_gd2.dll
120 -;extension=php_gettext.dll
121 -;extension=php_gmp.dll
122 -;extension=php_intl.dll
123 -;extension=php_imap.dll
124 -;extension=php_interbase.dll
125 -;extension=php_ldap.dll
126 -;extension=php_mbstring.dll
127 -;extension=php_exif.dll      ; Must be after mbstring as it depends on it
128 -;extension=php_mysql.dll
129 -;extension=php_mysqli.dll
130 -;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
131 -;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client
132 -;extension=php_openssl.dll
133 -;extension=php_pdo_firebird.dll
134 -;extension=php_pdo_mysql.dll
135 -;extension=php_pdo_oci.dll
136 -;extension=php_pdo_odbc.dll
137 -;extension=php_pdo_pgsql.dll
138 -;extension=php_pdo_sqlite.dll
139 -;extension=php_pgsql.dll
140 -;extension=php_pspell.dll
141 -;extension=php_shmop.dll
142 -
143 -; The MIBS data available in the PHP distribution must be installed. 
144 -; See http://www.php.net/manual/en/snmp.installation.php 
145 -;extension=php_snmp.dll
146 -
147 -;extension=php_soap.dll
148 -;extension=php_sockets.dll
149 -;extension=php_sqlite3.dll
150 -;extension=php_sybase_ct.dll
151 -;extension=php_tidy.dll
152 -;extension=php_xmlrpc.dll
153 -;extension=php_xsl.dll
154 -;extension=php_zip.dll
155 +
156 +; Ideally in TLD Linux you should install appropriate php-<extension> or
157 +; php-pecl-<extension> package.
158  
159  ;;;;;;;;;;;;;;;;;;;
160  ; Module Settings ;
161 @@ -938,9 +862,9 @@
162  ;filter.default_flags =
163  
164  [iconv]
165 -;iconv.input_encoding = ISO-8859-1
166 -;iconv.internal_encoding = ISO-8859-1
167 -;iconv.output_encoding = ISO-8859-1
168 +iconv.input_encoding = UTF-8
169 +iconv.internal_encoding = UTF-8
170 +iconv.output_encoding = UTF-8
171  
172  [intl]
173  ;intl.default_locale =
174 @@ -1154,6 +1078,9 @@
175  ; http://php.net/mysql.connect-timeout
176  mysql.connect_timeout = 60
177  
178 +; The name of the character set to use as the default character set.
179 +;mysql.connect_charset=utf8
180 +
181  ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
182  ; SQL-Errors will be displayed.
183  ; http://php.net/mysql.trace-mode
184 @@ -1193,6 +1120,9 @@
185  ; http://php.net/mysqli.default-socket
186  mysqli.default_socket =
187  
188 +; The name of the character set to use as the default character set.
189 +;mysqli.connect_charset=utf8
190 +
191  ; Default host for mysql_connect() (doesn't apply in safe mode).
192  ; http://php.net/mysqli.default-host
193  mysqli.default_host =
194 @@ -1359,7 +1289,7 @@
195  
196  [browscap]
197  ; http://php.net/browscap
198 -;browscap = extra/browscap.ini
199 +browscap = /etc/php/browscap.ini
200  
201  [Session]
202  ; Handler used to store/retrieve data.
203 @@ -1824,7 +1754,7 @@
204  
205  ; Sets the directory name where SOAP extension will put cache files.
206  ; http://php.net/soap.wsdl-cache-dir
207 -soap.wsdl_cache_dir="/tmp"
208 +soap.wsdl_cache_dir="/var/cache/php"
209  
210  ; (time to live) Sets the number of second while cached file will be used
211  ; instead of original one.