fix svn patch breakage in glib
[openwrt.git] / package / php5 / files / php.ini
1 [PHP]
2
3 cgi.fix_pathinfo=1
4
5 zend.ze1_compatibility_mode = Off
6
7 ;short_open_tag = Off
8 asp_tags = Off
9 precision = 12
10 y2k_compliance = On
11 output_buffering = Off
12
13 zlib.output_compression = Off
14 ;zlib.output_handler =
15 implicit_flush = Off
16
17 unserialize_callback_func=
18 serialize_precision = 100
19
20 allow_call_time_pass_reference = On
21
22 safe_mode = Off
23
24 safe_mode_gid = Off
25
26 safe_mode_include_dir =
27
28 safe_mode_exec_dir =
29
30 safe_mode_allowed_env_vars = PHP_
31
32 safe_mode_protected_env_vars = LD_LIBRARY_PATH
33
34 ;open_basedir =
35
36 disable_functions =
37
38 disable_classes =
39
40 ; Colors for Syntax Highlighting mode. Anything that's acceptable in
41 ; <span style="color: ???????"> would work.
42 ;highlight.string = #DD0000
43 ;highlight.comment = #FF9900
44 ;highlight.keyword = #007700
45 ;highlight.bg = #FFFFFF
46 ;highlight.default = #0000BB
47 ;highlight.html = #000000
48
49 expose_php = On
50
51
52 ;;;;;;;;;;;;;;;;;;;
53 ; Resource Limits ;
54 ;;;;;;;;;;;;;;;;;;;
55
56 max_execution_time = 30 ; Maximum execution time of each script, in seconds
57 max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
58 memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
59
60
61 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
62 ; Error handling and logging ;
63 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
64
65 ; error_reporting is a bit-field. Or each number up to get desired error
66 ; reporting level
67 ; E_ALL - All errors and warnings (doesn't include E_STRICT)
68 ; E_ERROR - fatal run-time errors
69 ; E_WARNING - run-time warnings (non-fatal errors)
70 ; E_PARSE - compile-time parse errors
71 ; E_NOTICE - run-time notices (these are warnings which often result
72 ; from a bug in your code, but it's possible that it was
73 ; intentional (e.g., using an uninitialized variable and
74 ; relying on the fact it's automatically initialized to an
75 ; empty string)
76 ; E_STRICT - run-time notices, enable to have PHP suggest changes
77 ; to your code which will ensure the best interoperability
78 ; and forward compatibility of your code
79 ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
80 ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
81 ; initial startup
82 ; E_COMPILE_ERROR - fatal compile-time errors
83 ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
84 ; E_USER_ERROR - user-generated error message
85 ; E_USER_WARNING - user-generated warning message
86 ; E_USER_NOTICE - user-generated notice message
87 ;
88 ; Examples:
89 ;
90 ; - Show all errors, except for notices and coding standards warnings
91 ;
92 ;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
93 ;
94 ; - Show all errors, except for notices
95 ;
96 ;error_reporting = E_ALL & ~E_NOTICE
97 ;
98 ; - Show only errors
99 ;
100 ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
101 ;
102 ; - Show all errors except for notices and coding standards warnings
103 ;
104 error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
105
106 ; Print out errors (as a part of the output). For production web sites,
107 ; you're strongly encouraged to turn this feature off, and use error logging
108 ; instead (see below). Keeping display_errors enabled on a production web site
109 ; may reveal security information to end users, such as file paths on your Web
110 ; server, your database schema or other information.
111 display_errors = On
112
113 ; Even when display_errors is on, errors that occur during PHP's startup
114 ; sequence are not displayed. It's strongly recommended to keep
115 ; display_startup_errors off, except for when debugging.
116 display_startup_errors = Off
117
118 ; Log errors into a log file (server-specific log, stderr, or error_log (below))
119 ; As stated above, you're strongly advised to use error logging in place of
120 ; error displaying on production web sites.
121 log_errors = Off
122
123 ; Set maximum length of log_errors. In error_log information about the source is
124 ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
125 log_errors_max_len = 1024
126
127 ; Do not log repeated messages. Repeated errors must occur in same file on same
128 ; line until ignore_repeated_source is set true.
129 ignore_repeated_errors = Off
130
131 ; Ignore source of message when ignoring repeated messages. When this setting
132 ; is On you will not log errors with repeated messages from different files or
133 ; sourcelines.
134 ignore_repeated_source = Off
135
136 ; If this parameter is set to Off, then memory leaks will not be shown (on
137 ; stdout or in the log). This has only effect in a debug compile, and if
138 ; error reporting includes E_WARNING in the allowed list
139 report_memleaks = On
140
141 ; Store the last error/warning message in $php_errormsg (boolean).
142 track_errors = Off
143
144 ; Disable the inclusion of HTML tags in error messages.
145 ; Note: Never use this feature for production boxes.
146 ;html_errors = Off
147
148 ; If html_errors is set On PHP produces clickable error messages that direct
149 ; to a page describing the error or function causing the error in detail.
150 ; You can download a copy of the PHP manual from http://www.php.net/docs.php
151 ; and change docref_root to the base URL of your local copy including the
152 ; leading '/'. You must also specify the file extension being used including
153 ; the dot.
154 ; Note: Never use this feature for production boxes.
155 ;docref_root = "/phpmanual/"
156 ;docref_ext = .html
157
158 ; String to output before an error message.
159 ;error_prepend_string = "<font color=ff0000>"
160
161 ; String to output after an error message.
162 ;error_append_string = "</font>"
163
164 ; Log errors to specified file.
165 ;error_log = filename
166
167 ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
168 ;error_log = syslog
169
170
171 ;;;;;;;;;;;;;;;;;
172 ; Data Handling ;
173 ;;;;;;;;;;;;;;;;;
174 ;
175 ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
176
177 ; The separator used in PHP generated URLs to separate arguments.
178 ; Default is "&".
179 ;arg_separator.output = "&amp;"
180
181 ; List of separator(s) used by PHP to parse input URLs into variables.
182 ; Default is "&".
183 ; NOTE: Every character in this directive is considered as separator!
184 ;arg_separator.input = ";&"
185
186 ; This directive describes the order in which PHP registers GET, POST, Cookie,
187 ; Environment and Built-in variables (G, P, C, E & S respectively, often
188 ; referred to as EGPCS or GPC). Registration is done from left to right, newer
189 ; values override older values.
190 variables_order = "EGPCS"
191
192 ; Whether or not to register the EGPCS variables as global variables. You may
193 ; want to turn this off if you don't want to clutter your scripts' global scope
194 ; with user data. This makes most sense when coupled with track_vars - in which
195 ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
196 ; variables.
197 ;
198 ; You should do your best to write your scripts so that they do not require
199 ; register_globals to be on; Using form variables as globals can easily lead
200 ; to possible security problems, if the code is not very well thought of.
201 register_globals = Off
202
203 ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
204 ; and friends. If you're not using them, it's recommended to turn them off,
205 ; for performance reasons.
206 register_long_arrays = On
207
208 ; This directive tells PHP whether to declare the argv&argc variables (that
209 ; would contain the GET information). If you don't use these variables, you
210 ; should turn it off for increased performance.
211 register_argc_argv = On
212
213 ; Maximum size of POST data that PHP will accept.
214 post_max_size = 8M
215
216 ; Magic quotes
217 ;
218
219 ; Magic quotes for incoming GET/POST/Cookie data.
220 magic_quotes_gpc = On
221
222 ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
223 magic_quotes_runtime = Off
224
225 ; Use Sybase-style magic quotes (escape ' with '' instead of \').
226 magic_quotes_sybase = Off
227
228 ; Automatically add files before or after any PHP document.
229 auto_prepend_file =
230 auto_append_file =
231
232 ; As of 4.0b4, PHP always outputs a character encoding by default in
233 ; the Content-type: header. To disable sending of the charset, simply
234 ; set it to be empty.
235 ;
236 ; PHP's built-in default is text/html
237 default_mimetype = "text/html"
238 ;default_charset = "iso-8859-1"
239
240 ; Always populate the $HTTP_RAW_POST_DATA variable.
241 ;always_populate_raw_post_data = On
242
243
244 ;;;;;;;;;;;;;;;;;;;;;;;;;
245 ; Paths and Directories ;
246 ;;;;;;;;;;;;;;;;;;;;;;;;;
247
248 ; UNIX: "/path1:/path2"
249 ;include_path = ".:/php/includes"
250 ;
251 ; Windows: "\path1;\path2"
252 ;include_path = ".;c:\php\includes"
253
254 ; The root of the PHP pages, used only if nonempty.
255 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
256 ; if you are running php as a CGI under any web server (other than IIS)
257 ; see documentation for security issues. The alternate is to use the
258 ; cgi.force_redirect configuration below
259 doc_root = /www
260
261 ; The directory under which PHP opens the script using /~username used only
262 ; if nonempty.
263 user_dir =
264
265 ; Directory in which the loadable extensions (modules) reside.
266 extension_dir = "/usr/lib/php"
267
268 ; Whether or not to enable the dl() function. The dl() function does NOT work
269 ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
270 ; disabled on them.
271 enable_dl = On
272
273 ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
274 ; most web servers. Left undefined, PHP turns this on by default. You can
275 ; turn it off here AT YOUR OWN RISK
276 ; **You CAN safely turn this off for IIS, in fact, you MUST.**
277 ; cgi.force_redirect = 1
278
279 ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
280 ; every request.
281 ; cgi.nph = 1
282
283 ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
284 ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
285 ; will look for to know it is OK to continue execution. Setting this variable MAY
286 ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
287 ; cgi.redirect_status_env = ;
288
289 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
290 ; security tokens of the calling client. This allows IIS to define the
291 ; security context that the request runs under. mod_fastcgi under Apache
292 ; does not currently support this feature (03/17/2002)
293 ; Set to 1 if running under IIS. Default is zero.
294 ; fastcgi.impersonate = 1;
295
296 ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
297 ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
298 ; is supported by Apache. When this option is set to 1 PHP will send
299 ; RFC2616 compliant header.
300 ; Default is zero.
301 ;cgi.rfc2616_headers = 0
302
303
304 ;;;;;;;;;;;;;;;;
305 ; File Uploads ;
306 ;;;;;;;;;;;;;;;;
307
308 ; Whether to allow HTTP file uploads.
309 file_uploads = On
310
311 ; Temporary directory for HTTP uploaded files (will use system default if not
312 ; specified).
313 upload_tmp_dir = /tmp
314
315 ; Maximum allowed size for uploaded files.
316 upload_max_filesize = 2M
317
318
319 ;;;;;;;;;;;;;;;;;;
320 ; Fopen wrappers ;
321 ;;;;;;;;;;;;;;;;;;
322
323 ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
324 allow_url_fopen = On
325
326 ; Define the anonymous ftp password (your email address)
327 ;from="john@doe.com"
328
329 ; Define the User-Agent string
330 ; user_agent="PHP"
331
332 ; Default timeout for socket based streams (seconds)
333 default_socket_timeout = 60
334
335 ; If your scripts have to deal with files from Macintosh systems,
336 ; or you are running on a Mac and need to deal with files from
337 ; unix or win32 systems, setting this flag will cause PHP to
338 ; automatically detect the EOL character in those files so that
339 ; fgets() and file() will work regardless of the source of the file.
340 ; auto_detect_line_endings = Off
341
342
343 ;;;;;;;;;;;;;;;;;;;;;;
344 ; Dynamic Extensions ;
345 ;;;;;;;;;;;;;;;;;;;;;;
346 ;
347 ; If you wish to have an extension loaded automatically, use the following
348 ; syntax:
349 ;
350 ; extension=modulename.extension
351 ;
352 ; For example, on Windows:
353 ;
354 ; extension=msql.dll
355 ;
356 ; ... or under UNIX:
357 ;
358 ; extension=msql.so
359 ;
360 ; Note that it should be the name of the module only; no directory information
361 ; needs to go here. Specify the location of the extension with the
362 ; extension_dir directive above.
363
364
365 ;Windows Extensions
366 ;Note that ODBC support is built in, so no dll is needed for it.
367 ;
368
369 ;extension=ftp.so
370 ;extension=gd.so
371 ;extension=mysql.so
372 ;extension=pcre.so
373 ;extension=session.so
374 ;extension=sockets.so
375 ;extension=xml.so
376
377
378
379
380 ;;;;;;;;;;;;;;;;;;;
381 ; Module Settings ;
382 ;;;;;;;;;;;;;;;;;;;
383
384 [SQL]
385 sql.safe_mode = Off
386
387 [Session]
388 ; Handler used to store/retrieve data.
389 session.save_handler = files
390
391 ; Argument passed to save_handler. In the case of files, this is the path
392 ; where data files are stored. Note: Windows users have to change this
393 ; variable in order to use PHP's session functions.
394 ;
395 ; As of PHP 4.0.1, you can define the path as:
396 ;
397 ; session.save_path = "N;/path"
398 ;
399 ; where N is an integer. Instead of storing all the session files in
400 ; /path, what this will do is use subdirectories N-levels deep, and
401 ; store the session data in those directories. This is useful if you
402 ; or your OS have problems with lots of files in one directory, and is
403 ; a more efficient layout for servers that handle lots of sessions.
404 ;
405 ; NOTE 1: PHP will not create this directory structure automatically.
406 ; You can use the script in the ext/session dir for that purpose.
407 ; NOTE 2: See the section on garbage collection below if you choose to
408 ; use subdirectories for session storage
409 ;
410 ; The file storage module creates files using mode 600 by default.
411 ; You can change that by using
412 ;
413 ; session.save_path = "N;MODE;/path"
414 ;
415 ; where MODE is the octal representation of the mode. Note that this
416 ; does not overwrite the process's umask.
417 session.save_path = "/tmp"
418
419 ; Whether to use cookies.
420 session.use_cookies = 1
421
422 ; This option enables administrators to make their users invulnerable to
423 ; attacks which involve passing session ids in URLs; defaults to 0.
424 ; session.use_only_cookies = 1
425
426 ; Name of the session (used as cookie name).
427 session.name = PHPSESSID
428
429 ; Initialize session on request startup.
430 session.auto_start = 0
431
432 ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
433 session.cookie_lifetime = 0
434
435 ; The path for which the cookie is valid.
436 session.cookie_path = /
437
438 ; The domain for which the cookie is valid.
439 session.cookie_domain =
440
441 ; Handler used to serialize data. php is the standard serializer of PHP.
442 session.serialize_handler = php
443
444 ; Define the probability that the 'garbage collection' process is started
445 ; on every session initialization.
446 ; The probability is calculated by using gc_probability/gc_divisor,
447 ; e.g. 1/100 means there is a 1% chance that the GC process starts
448 ; on each request.
449
450 session.gc_probability = 1
451 session.gc_divisor = 100
452
453 ; After this number of seconds, stored data will be seen as 'garbage' and
454 ; cleaned up by the garbage collection process.
455 session.gc_maxlifetime = 1440
456
457 ; NOTE: If you are using the subdirectory option for storing session files
458 ; (see session.save_path above), then garbage collection does *not*
459 ; happen automatically. You will need to do your own garbage
460 ; collection through a shell script, cron entry, or some other method.
461 ; For example, the following script would is the equivalent of
462 ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
463 ; cd /path/to/sessions; find -cmin +24 | xargs rm
464
465 ; PHP 4.2 and less have an undocumented feature/bug that allows you to
466 ; to initialize a session variable in the global scope, albeit register_globals
467 ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
468 ; You can disable the feature and the warning separately. At this time,
469 ; the warning is only displayed, if bug_compat_42 is enabled.
470
471 session.bug_compat_42 = 1
472 session.bug_compat_warn = 1
473
474 ; Check HTTP Referer to invalidate externally stored URLs containing ids.
475 ; HTTP_REFERER has to contain this substring for the session to be
476 ; considered as valid.
477 session.referer_check =
478
479 ; How many bytes to read from the file.
480 session.entropy_length = 0
481
482 ; Specified here to create the session id.
483 session.entropy_file =
484
485 ;session.entropy_length = 16
486
487 ;session.entropy_file = /dev/urandom
488
489 ; Set to {nocache,private,public,} to determine HTTP caching aspects
490 ; or leave this empty to avoid sending anti-caching headers.
491 session.cache_limiter = nocache
492
493 ; Document expires after n minutes.
494 session.cache_expire = 180
495
496 ; trans sid support is disabled by default.
497 ; Use of trans sid may risk your users security.
498 ; Use this option with caution.
499 ; - User may send URL contains active session ID
500 ; to other person via. email/irc/etc.
501 ; - URL that contains active session ID may be stored
502 ; in publically accessible computer.
503 ; - User may access your site with the same session ID
504 ; always using URL stored in browser's history or bookmarks.
505 session.use_trans_sid = 0
506
507 ; Select a hash function
508 ; 0: MD5 (128 bits)
509 ; 1: SHA-1 (160 bits)
510 session.hash_function = 0
511
512 ; Define how many bits are stored in each character when converting
513 ; the binary hash data to something readable.
514 ;
515 ; 4 bits: 0-9, a-f
516 ; 5 bits: 0-9, a-v
517 ; 6 bits: 0-9, a-z, A-Z, "-", ","
518 session.hash_bits_per_character = 4
519
520 ; The URL rewriter will look for URLs in a defined set of HTML tags.
521 ; form/fieldset are special; if you include them here, the rewriter will
522 ; add a hidden <input> field with the info which is otherwise appended
523 ; to URLs. If you want XHTML conformity, remove the form entry.
524 ; Note that all valid entries require a "=", even if no value follows.
525 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
526
527
528 [Assertion]
529 ; Assert(expr); active by default.
530 ;assert.active = On
531
532 ; Issue a PHP warning for each failed assertion.
533 ;assert.warning = On
534
535 ; Don't bail out by default.
536 ;assert.bail = Off
537
538 ; User-function to be called if an assertion fails.
539 ;assert.callback = 0
540
541 ; Eval the expression with current error_reporting(). Set to true if you want
542 ; error_reporting(0) around the eval().
543 ;assert.quiet_eval = 0
544
545
546
547
548
549 [exif]
550 ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
551 ; With mbstring support this will automatically be converted into the encoding
552 ; given by corresponding encode setting. When empty mbstring.internal_encoding
553 ; is used. For the decode settings you can distinguish between motorola and
554 ; intel byte order. A decode setting cannot be empty.
555 ;exif.encode_unicode = ISO-8859-15
556 ;exif.decode_unicode_motorola = UCS-2BE
557 ;exif.decode_unicode_intel = UCS-2LE
558 ;exif.encode_jis =
559 ;exif.decode_jis_motorola = JIS
560 ;exif.decode_jis_intel = JIS
561
This page took 0.071018 seconds and 5 git commands to generate.