]> git.pld-linux.org Git - packages/php.git/blame - php-ini.patch
- rel 1; suhosin from cooker
[packages/php.git] / php-ini.patch
CommitLineData
4e8b2de4
ER
1--- php-5.3.4/php.ini~ 2010-12-12 23:03:42.000000000 +0200
2+++ php-5.3.4/php.ini 2010-12-12 23:05:56.583592856 +0200
a52e6f00
ER
3@@ -223,7 +223,7 @@
4 ; Development Value: Off
5 ; Production Value: Off
6 ; http://php.net/short-open-tag
7-short_open_tag = Off
8+short_open_tag = On
9
10 ; Allow ASP-style <% %> tags.
11 ; http://php.net/asp-tags
b45729b9
AM
12@@ -428,7 +428,7 @@
13 ; threat in any way, but it makes it possible to determine whether you use PHP
14 ; on your server or not.
15 ; http://php.net/expose-php
16-expose_php = On
17+expose_php = Off
18
19 ;;;;;;;;;;;;;;;;;;;
20 ; Resource Limits ;
21@@ -583,7 +583,7 @@
22 ; Development Value: On
23 ; Production Value: Off
24 ; http://php.net/track-errors
25-track_errors = Off
26+track_errors = On
27
28 ; Turn off normal error reporting and emit XML-RPC error XML
29 ; http://php.net/xmlrpc-errors
2129049b 30@@ -804,7 +804,7 @@
b45729b9
AM
31
32 ; Directory in which the loadable extensions (modules) reside.
33 ; http://php.net/extension-dir
34-; extension_dir = "./"
35+extension_dir = "/usr/lib/php"
36 ; On windows:
37 ; extension_dir = "ext"
38
a52e6f00
ER
39@@ -812,54 +812,7 @@
40 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
41 ; disabled on them.
b45729b9 42 ; http://php.net/enable-dl
a52e6f00
ER
43-enable_dl = Off
44-
b45729b9
AM
45-; cgi.force_redirect is necessary to provide security running PHP as a CGI under
46-; most web servers. Left undefined, PHP turns this on by default. You can
47-; turn it off here AT YOUR OWN RISK
48-; **You CAN safely turn this off for IIS, in fact, you MUST.**
49-; http://php.net/cgi.force-redirect
50-;cgi.force_redirect = 1
51-
52-; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
53-; every request. PHP's default behavior is to disable this feature.
54-;cgi.nph = 1
55-
56-; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
57-; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
58-; will look for to know it is OK to continue execution. Setting this variable MAY
59-; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
60-; http://php.net/cgi.redirect-status-env
61-;cgi.redirect_status_env = ;
62-
63-; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
64-; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
65-; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
66-; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
67-; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
68-; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
69-; http://php.net/cgi.fix-pathinfo
70-;cgi.fix_pathinfo=1
71-
72-; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
73-; security tokens of the calling client. This allows IIS to define the
74-; security context that the request runs under. mod_fastcgi under Apache
75-; does not currently support this feature (03/17/2002)
76-; Set to 1 if running under IIS. Default is zero.
77-; http://php.net/fastcgi.impersonate
78-;fastcgi.impersonate = 1;
79-
80-; Disable logging through FastCGI connection. PHP's default behavior is to enable
81-; this feature.
82-;fastcgi.logging = 0
83-
84-; cgi.rfc2616_headers configuration option tells PHP what type of headers to
85-; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
86-; is supported by Apache. When this option is set to 1 PHP will send
87-; RFC2616 compliant header.
88-; Default is zero.
89-; http://php.net/cgi.rfc2616-headers
90-;cgi.rfc2616_headers = 0
1f5e4073 91+enable_dl = Off
a52e6f00 92
b45729b9
AM
93 ;;;;;;;;;;;;;;;;
94 ; File Uploads ;
4e8b2de4
ER
95@@ -876,11 +876,7 @@
96 ;
97 ; extension=modulename.extension
98 ;
99-; For example, on Windows:
100-;
101-; extension=msql.dll
102-;
103-; ... or under UNIX:
104+; For example under UNIX:
105 ;
106 ; extension=msql.so
107 ;
dc449d5c 108@@ -887,39 +887,8 @@
b45729b9
AM
109 ; If you only provide the name of the extension, PHP will look for it in its
110 ; default extension directory.
111 ;
112-; Windows Extensions
113-; Note that ODBC support is built in, so no dll is needed for it.
114-; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
115-; extension folders as well as the separate PECL DLL download (PHP 5).
116-; Be sure to appropriately set the extension_dir directive.
bc2636bc 117-;
b45729b9
AM
118-;extension=php_bz2.dll
119-;extension=php_curl.dll
b45729b9
AM
120-;extension=php_fileinfo.dll
121-;extension=php_gd2.dll
122-;extension=php_gettext.dll
123-;extension=php_gmp.dll
124-;extension=php_intl.dll
125-;extension=php_imap.dll
126-;extension=php_interbase.dll
127-;extension=php_ldap.dll
128-;extension=php_mbstring.dll
4e8b2de4 129-;extension=php_exif.dll ; Must be after mbstring as it depends on it
b45729b9
AM
130-;extension=php_mysql.dll
131-;extension=php_mysqli.dll
132-;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
133-;extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client
134-;extension=php_openssl.dll
135-;extension=php_pdo_firebird.dll
136-;extension=php_pdo_mssql.dll
137-;extension=php_pdo_mysql.dll
138-;extension=php_pdo_oci.dll
139-;extension=php_pdo_odbc.dll
140-;extension=php_pdo_pgsql.dll
141-;extension=php_pdo_sqlite.dll
142-;extension=php_pgsql.dll
b45729b9
AM
143-;extension=php_pspell.dll
144-;extension=php_shmop.dll
4e8b2de4
ER
145+; Ideally in PLD Linux you should install appropriate php-<extension> or
146+; php-pecl-<extension> package.
147
dc449d5c
AM
148 ; The MIBS data available in the PHP distribution must be installed.
149 ; See http://www.php.net/manual/en/snmp.installation.php
2129049b 150@@ -1235,6 +1140,9 @@
b45729b9
AM
151 ; http://php.net/mysql.connect-timeout
152 mysql.connect_timeout = 60
153
154+; The name of the character set to use as the default character set.
155+;mysql.connect_charset=utf8
156+
157 ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
158 ; SQL-Errors will be displayed.
159 ; http://php.net/mysql.trace-mode
2129049b 160@@ -1274,6 +1182,9 @@
b45729b9
AM
161 ; http://php.net/mysqli.default-socket
162 mysqli.default_socket =
163
164+; The name of the character set to use as the default character set.
165+;mysqli.connect_charset=utf8
166+
167 ; Default host for mysql_connect() (doesn't apply in safe mode).
168 ; http://php.net/mysqli.default-host
169 mysqli.default_host =
2129049b 170@@ -1440,7 +1351,7 @@
b45729b9
AM
171
172 [browscap]
173 ; http://php.net/browscap
174-;browscap = extra/browscap.ini
175+browscap = /etc/php/browscap.ini
176
177 [Session]
178 ; Handler used to store/retrieve data.
2129049b 179@@ -1863,7 +1774,7 @@
b45729b9
AM
180
181 ; Sets the directory name where SOAP extension will put cache files.
182 ; http://php.net/soap.wsdl-cache-dir
183-soap.wsdl_cache_dir="/tmp"
184+soap.wsdl_cache_dir="/var/run/php"
185
2129049b 186 ; (time to live) Sets the number of second while cached file will be used
b45729b9 187 ; instead of original one.
This page took 0.047542 seconds and 4 git commands to generate.