]> git.pld-linux.org Git - packages/php.git/blob - php-ini.patch
- keep the short_open_tag on
[packages/php.git] / php-ini.patch
1 --- mod/php.ini 2008-08-10 21:51:30.527603438 +0000
2 +++ php5.3-200904152030/php.ini 2009-04-24 01:26:05.434886222 +0300
3 @@ -1,26 +1,21 @@
4  [PHP]
5  
6 -;;;;;;;;;;;
7 -; WARNING ;
8 -;;;;;;;;;;;
9 -; This is the default settings file for new PHP installations.
10 -; By default, PHP installs itself with a configuration suitable for
11 -; development purposes, and *NOT* for production purposes.
12 -; For several security-oriented considerations that should be taken
13 -; before going online with your site, please consult php.ini-recommended
14 -; and http://php.net/manual/en/security.php.
15 -
16 -
17  ;;;;;;;;;;;;;;;;;;;
18  ; About php.ini   ;
19  ;;;;;;;;;;;;;;;;;;;
20 -; This file controls many aspects of PHP's behavior.  In order for PHP to
21 -; read it, it must be named 'php.ini'.  PHP looks for it in the current
22 -; working directory, in the path designated by the environment variable
23 -; PHPRC, and in the path that was defined in compile time (in that order).
24 -; Under Windows, the compile-time path is the Windows directory.  The
25 -; path in which the php.ini file is looked for can be overridden using
26 -; the -c argument in command line mode.
27 +; This file controls many aspects of PHP's behavior.
28 +;
29 +; Please note, that in PLD installations /etc/php/php.ini file
30 +; contains global settings for all SAPIs (cgi, cli, apache...),
31 +; and after reading this file, SAPI-specific file (/etc/php/php-cgi.ini,
32 +; /etc/php/php-cli.ini, /etc/php/php-apache.ini...) is INCLUDED
33 +; (so you don't have to duplicate whole large file to override only
34 +; few options)
35 +;
36 +; This is the default settings file for new PHP installations from
37 +; PLD Linux Distribution. It's based mainly on php.ini-dist, but with some
38 +; changes made with security in mind (see below, consult also
39 +; http://php.net/manual/en/security.php).
40  ;
41  ; The syntax of the file is extremely simple.  Whitespace and Lines
42  ; beginning with a semicolon are silently ignored (as you probably guessed).
43 @@ -94,7 +89,7 @@
44  asp_tags = Off
45  
46  ; The number of significant digits displayed in floating point numbers.
47 -precision    =  12
48 +precision    =  14
49  
50  ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
51  y2k_compliance = On
52 @@ -228,7 +223,7 @@
53  ; Development Value: Off
54  ; Production Value: Off
55  ; http://php.net/short-open-tag
56 -short_open_tag = Off
57 +short_open_tag = On
58  
59  ; Allow ASP-style <% %> tags.
60  ; http://php.net/asp-tags
61 @@ -253,7 +248,7 @@
62  ; (e.g. by adding its signature to the Web server header).  It is no security
63  ; threat in any way, but it makes it possible to determine whether you use PHP
64  ; on your server or not.
65 -expose_php = On
66 +expose_php = Off
67  
68  
69  ;;;;;;;;;;;;;;;;;;;
70 @@ -313,7 +308,9 @@
71  ;
72  ;   - Show all errors except for notices and coding standards warnings
73  ;
74 -error_reporting  =  E_ALL & ~E_NOTICE
75 +;error_reporting  =  E_ALL & ~E_NOTICE
76 +
77 +error_reporting  =  E_ALL
78  
79  ; Print out errors (as a part of the output).  For production web sites,
80  ; you're strongly encouraged to turn this feature off, and use error logging
81 @@ -330,7 +327,7 @@
82  ;
83  ; stdout (On) - Display errors to STDOUT
84  ;
85 -display_errors = On
86 +display_errors = Off
87  
88  ; Even when display_errors is on, errors that occur during PHP's startup
89  ; sequence are not displayed.  It's strongly recommended to keep
90 @@ -340,7 +337,7 @@
91  ; Log errors into a log file (server-specific log, stderr, or error_log (below))
92  ; As stated above, you're strongly advised to use error logging in place of
93  ; error displaying on production web sites.
94 -log_errors = Off
95 +log_errors = On
96  
97  ; Set maximum length of log_errors. In error_log information about the source is
98  ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
99 @@ -367,7 +364,7 @@
100  
101  ; Disable the inclusion of HTML tags in error messages.
102  ; Note: Never use this feature for production boxes.
103 -;html_errors = Off
104 +html_errors = Off
105  
106  ; If html_errors is set On PHP produces clickable error messages that direct
107  ; to a page describing the error or function causing the error in detail.
108 @@ -411,7 +408,7 @@
109  ; Environment and Built-in variables (G, P, C, E & S respectively, often
110  ; referred to as EGPCS or GPC).  Registration is done from left to right, newer
111  ; values override older values.
112 -variables_order = "EGPCS"
113 +variables_order = "GPCS"
114  
115  ; This directive describes the order in which PHP registers GET, POST and Cookie
116  ; variables into the _REQUEST array. Registration is done from left to right, 
117 @@ -433,12 +430,12 @@
118  ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
119  ; and friends.  If you're not using them, it's recommended to turn them off,
120  ; for performance reasons.
121 -register_long_arrays = On
122 +register_long_arrays = Off
123  
124  ; This directive tells PHP whether to declare the argv&argc variables (that
125  ; would contain the GET information).  If you don't use these variables, you
126  ; should turn it off for increased performance.
127 -register_argc_argv = On
128 +register_argc_argv = Off
129  
130  ; When enabled, the SERVER and ENV variables are created when they're first
131  ; used (Just In Time) instead of when the script starts. If these variables
132 @@ -454,7 +451,7 @@
133  ;
134  
135  ; Magic quotes for incoming GET/POST/Cookie data.
136 -magic_quotes_gpc = On
137 +magic_quotes_gpc = Off
138  
139  ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
140  magic_quotes_runtime = Off
141 @@ -500,55 +497,13 @@
142  user_dir =
143  
144  ; Directory in which the loadable extensions (modules) reside.
145 -extension_dir = "./"
146 +extension_dir = "/usr/lib/php"
147  
148  ; Whether or not to enable the dl() function.  The dl() function does NOT work
149  ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
150  ; disabled on them.
151  enable_dl = On
152  
153 -; cgi.force_redirect is necessary to provide security running PHP as a CGI under
154 -; most web servers.  Left undefined, PHP turns this on by default.  You can
155 -; turn it off here AT YOUR OWN RISK
156 -; **You CAN safely turn this off for IIS, in fact, you MUST.**
157 -; cgi.force_redirect = 1
158 -
159 -; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
160 -; every request.
161 -; cgi.nph = 1
162 -
163 -; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
164 -; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
165 -; will look for to know it is OK to continue execution.  Setting this variable MAY
166 -; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
167 -; cgi.redirect_status_env = ;
168 -
169 -; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
170 -; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
171 -; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
172 -; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
173 -; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
174 -; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
175 -; cgi.fix_pathinfo=0
176 -
177 -; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
178 -; security tokens of the calling client.  This allows IIS to define the
179 -; security context that the request runs under.  mod_fastcgi under Apache
180 -; does not currently support this feature (03/17/2002)
181 -; Set to 1 if running under IIS.  Default is zero.
182 -; fastcgi.impersonate = 1;
183 -
184 -; Disable logging through FastCGI connection
185 -; fastcgi.logging = 0
186 -
187 -; cgi.rfc2616_headers configuration option tells PHP what type of headers to
188 -; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
189 -; is supported by Apache. When this option is set to 1 PHP will send
190 -; RFC2616 compliant header.
191 -; Default is zero.
192 -;cgi.rfc2616_headers = 0
193 -
194 -
195  ;;;;;;;;;;;;;;;;
196  ; File Uploads ;
197  ;;;;;;;;;;;;;;;;
198 @@ -612,63 +567,6 @@
199  ; needs to go here.  Specify the location of the extension with the
200  ; extension_dir directive above.
201  
202 -
203 -; Windows Extensions
204 -; Note that ODBC support is built in, so no dll is needed for it.
205 -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
206 -; extension folders as well as the separate PECL DLL download (PHP 5).
207 -; Be sure to appropriately set the extension_dir directive.
208 -
209 -;extension=php_bz2.dll
210 -;extension=php_curl.dll
211 -;extension=php_dba.dll
212 -;extension=php_dbase.dll
213 -;extension=php_exif.dll
214 -;extension=php_fileinfo.dll
215 -;extension=php_fdf.dll
216 -;extension=php_gd2.dll
217 -;extension=php_gettext.dll
218 -;extension=php_gmp.dll
219 -;extension=php_ifx.dll
220 -;extension=php_intl.dll
221 -;extension=php_imap.dll
222 -;extension=php_interbase.dll
223 -;extension=php_ldap.dll
224 -;extension=php_mbstring.dll
225 -;extension=php_mcrypt.dll
226 -;extension=php_mhash.dll
227 -;extension=php_mime_magic.dll
228 -;extension=php_ming.dll
229 -;extension=php_msql.dll
230 -;extension=php_mssql.dll
231 -;extension=php_mysql.dll
232 -;extension=php_mysqli.dll
233 -;extension=php_oci8.dll
234 -;extension=php_openssl.dll
235 -;extension=php_pdo.dll
236 -;extension=php_pdo_firebird.dll
237 -;extension=php_pdo_mssql.dll
238 -;extension=php_pdo_mysql.dll
239 -;extension=php_pdo_oci.dll
240 -;extension=php_pdo_oci8.dll
241 -;extension=php_pdo_odbc.dll
242 -;extension=php_pdo_pgsql.dll
243 -;extension=php_pdo_sqlite.dll
244 -;extension=php_pgsql.dll
245 -;extension=php_phar.dll
246 -;extension=php_pspell.dll
247 -;extension=php_shmop.dll
248 -;extension=php_snmp.dll
249 -;extension=php_soap.dll
250 -;extension=php_sockets.dll
251 -;extension=php_sqlite.dll
252 -;extension=php_sqlite3.dll
253 -;extension=php_sybase_ct.dll
254 -;extension=php_tidy.dll
255 -;extension=php_xmlrpc.dll
256 -;extension=php_xsl.dll
257 -;extension=php_zip.dll
258 -
259  ;;;;;;;;;;;;;;;;;;;
260  ; Module Settings ;
261  ;;;;;;;;;;;;;;;;;;;
262 @@ -966,7 +864,7 @@
263  bcmath.scale = 0
264  
265  [browscap]
266 -;browscap = extra/browscap.ini
267 +browscap = /etc/php/browscap.ini
268  
269  [Informix]
270  ; Default host for ifx_connect() (doesn't apply in safe mode).
271 @@ -1319,7 +1217,7 @@
272  ; Enables or disables WSDL caching feature.
273  soap.wsdl_cache_enabled=1
274  ; Sets the directory name where SOAP extension will put cache files.
275 -soap.wsdl_cache_dir="/tmp"
276 +soap.wsdl_cache_dir="/var/run/php"
277  ; (time to live) Sets the number of second while cached file will be used 
278  ; instead of original one.
279  soap.wsdl_cache_ttl=86400
This page took 0.042635 seconds and 3 git commands to generate.