Ticket #625: php.ini

File php.ini, 46.3 KB (added by wmerlotto, 15 years ago)
Line 
1[PHP]
2
3;;;;;;;;;;;;;;;;;;;
4; About php.ini   ;
5;;;;;;;;;;;;;;;;;;;
6; This file controls many aspects of PHP's behavior.  In order for PHP to
7; read it, it must be named 'php.ini'.  PHP looks for it in the current
8; working directory, in the path designated by the environment variable
9; PHPRC, and in the path that was defined in compile time (in that order).
10; Under Windows, the compile-time path is the Windows directory.  The
11; path in which the php.ini file is looked for can be overridden using
12; the -c argument in command line mode.
13;
14; The syntax of the file is extremely simple.  Whitespace and Lines
15; beginning with a semicolon are silently ignored (as you probably guessed).
16; Section headers (e.g. [Foo]) are also silently ignored, even though
17; they might mean something in the future.
18;
19; Directives are specified using the following syntax:
20; directive = value
21; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
22;
23; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
24; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
25; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
26;
27; Expressions in the INI file are limited to bitwise operators and parentheses:
28; |        bitwise OR
29; &        bitwise AND
30; ~        bitwise NOT
31; !        boolean NOT
32;
33; Boolean flags can be turned on using the values 1, On, True or Yes.
34; They can be turned off using the values 0, Off, False or No.
35;
36; An empty string can be denoted by simply not writing anything after the equal
37; sign, or by using the None keyword:
38;
39;  foo =         ; sets foo to an empty string
40;  foo = none    ; sets foo to an empty string
41;  foo = "none"  ; sets foo to the string 'none'
42;
43; If you use constants in your value, and these constants belong to a
44; dynamically loaded extension (either a PHP extension or a Zend extension),
45; you may only use these constants *after* the line that loads the extension.
46;
47;
48;;;;;;;;;;;;;;;;;;;
49; About this file ;
50;;;;;;;;;;;;;;;;;;;
51; This is the recommended, PHP 5-style version of the php.ini-dist file.  It
52; sets some non standard settings, that make PHP more efficient, more secure,
53; and encourage cleaner coding.
54;
55; The price is that with these settings, PHP may be incompatible with some
56; applications, and sometimes, more difficult to develop with.  Using this
57; file is warmly recommended for production sites.  As all of the changes from
58; the standard settings are thoroughly documented, you can go over each one,
59; and decide whether you want to use it or not.
60;
61; For general information about the php.ini file, please consult the php.ini-dist
62; file, included in your PHP distribution.
63;
64; This file is different from the php.ini-dist file in the fact that it features
65; different values for several directives, in order to improve performance, while
66; possibly breaking compatibility with the standard out-of-the-box behavior of
67; PHP.  Please make sure you read what's different, and modify your scripts
68; accordingly, if you decide to use this file instead.
69;
70; - register_long_arrays = Off     [Performance]
71;     Disables registration of the older (and deprecated) long predefined array
72;     variables ($HTTP_*_VARS).  Instead, use the superglobals that were
73;     introduced in PHP 4.1.0
74; - display_errors = Off           [Security]
75;     With this directive set to off, errors that occur during the execution of
76;     scripts will no longer be displayed as a part of the script output, and thus,
77;     will no longer be exposed to remote users.  With some errors, the error message
78;     content may expose information about your script, web server, or database
79;     server that may be exploitable for hacking.  Production sites should have this
80;     directive set to off.
81; - log_errors = On                [Security]
82;     This directive complements the above one.  Any errors that occur during the
83;     execution of your script will be logged (typically, to your server's error log,
84;     but can be configured in several ways).  Along with setting display_errors to off,
85;     this setup gives you the ability to fully understand what may have gone wrong,
86;     without exposing any sensitive information to remote users.
87; - output_buffering = 4096        [Performance]
88;     Set a 4KB output buffer.  Enabling output buffering typically results in less
89;     writes, and sometimes less packets sent on the wire, which can often lead to
90;     better performance.  The gain this directive actually yields greatly depends
91;     on which Web server you're working with, and what kind of scripts you're using.
92; - register_argc_argv = Off       [Performance]
93;     Disables registration of the somewhat redundant $argv and $argc global
94;     variables.
95; - magic_quotes_gpc = Off         [Performance]
96;     Input data is no longer escaped with slashes so that it can be sent into
97;     SQL databases without further manipulation.  Instead, you should use the
98;     function addslashes() on each input element you wish to send to a database.
99; - variables_order = "GPCS"       [Performance]
100;     The environment variables are not hashed into the $_ENV.  To access
101;     environment variables, you can use getenv() instead.
102; - error_reporting = E_ALL        [Code Cleanliness, Security(?)]
103;     By default, PHP suppresses errors of type E_NOTICE.  These error messages
104;     are emitted for non-critical errors, but that could be a symptom of a bigger
105;     problem.  Most notably, this will cause error messages about the use
106;     of uninitialized variables to be displayed.
107; - allow_call_time_pass_reference = Off     [Code cleanliness]
108;     It's not possible to decide to force a variable to be passed by reference
109;     when calling a function.  The PHP 4 style to do this is by making the
110;     function require the relevant argument by reference.
111
112;;;;;;;;;;;;;;;;;;;;
113; Language Options ;
114;;;;;;;;;;;;;;;;;;;;
115
116; Enable the PHP scripting language engine under Apache.
117engine = On
118
119; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
120zend.ze1_compatibility_mode = Off
121
122; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
123; NOTE: Using short tags should be avoided when developing applications or
124; libraries that are meant for redistribution, or deployment on PHP
125; servers which are not under your control, because short tags may not
126; be supported on the target server. For portable, redistributable code,
127; be sure not to use short tags.
128short_open_tag = On
129
130; Allow ASP-style <% %> tags.
131asp_tags = Off
132
133; The number of significant digits displayed in floating point numbers.
134precision    =  14
135
136; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
137y2k_compliance = On
138
139; Output buffering allows you to send header lines (including cookies) even
140; after you send body content, at the price of slowing PHP's output layer a
141; bit.  You can enable output buffering during runtime by calling the output
142; buffering functions.  You can also enable output buffering for all files by
143; setting this directive to On.  If you wish to limit the size of the buffer
144; to a certain size - you can use a maximum number of bytes instead of 'On', as
145; a value for this directive (e.g., output_buffering=4096).
146output_buffering = Off
147;output_buffering = 4096 ;change200809
148
149; You can redirect all of the output of your scripts to a function.  For
150; example, if you set output_handler to "mb_output_handler", character
151; encoding will be transparently converted to the specified encoding.
152; Setting any output handler automatically turns on output buffering.
153; Note: People who wrote portable scripts should not depend on this ini
154;       directive. Instead, explicitly set the output handler using ob_start().
155;       Using this ini directive may cause problems unless you know what script
156;       is doing.
157; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
158;       and you cannot use both "ob_gzhandler" and "zlib.output_compression".
159; Note: output_handler must be empty if this is set 'On' !!!!
160;       Instead you must use zlib.output_handler.
161;output_handler =
162
163; Transparent output compression using the zlib library
164; Valid values for this option are 'off', 'on', or a specific buffer size
165; to be used for compression (default is 4KB)
166; Note: Resulting chunk size may vary due to nature of compression. PHP
167;       outputs chunks that are few hundreds bytes each as a result of
168;       compression. If you prefer a larger chunk size for better
169;       performance, enable output_buffering in addition.
170; Note: You need to use zlib.output_handler instead of the standard
171;       output_handler, or otherwise the output will be corrupted.
172zlib.output_compression = Off
173;zlib.output_compression_level = -1
174
175; You cannot specify additional output handlers if zlib.output_compression
176; is activated here. This setting does the same as output_handler but in
177; a different order.
178;zlib.output_handler =
179
180; Implicit flush tells PHP to tell the output layer to flush itself
181; automatically after every output block.  This is equivalent to calling the
182; PHP function flush() after each and every call to print() or echo() and each
183; and every HTML block.  Turning this option on has serious performance
184; implications and is generally recommended for debugging purposes only.
185implicit_flush = Off
186
187; The unserialize callback function will be called (with the undefined class'
188; name as parameter), if the unserializer finds an undefined class
189; which should be instantiated.
190; A warning appears if the specified function is not defined, or if the
191; function doesn't include/implement the missing class.
192; So only set this entry, if you really want to implement such a
193; callback-function.
194unserialize_callback_func=
195
196; When floats & doubles are serialized store serialize_precision significant
197; digits after the floating point. The default value ensures that when floats
198; are decoded with unserialize, the data will remain the same.
199serialize_precision = 100
200
201; Whether to enable the ability to force arguments to be passed by reference
202; at function call time.  This method is deprecated and is likely to be
203; unsupported in future versions of PHP/Zend.  The encouraged method of
204; specifying which arguments should be passed by reference is in the function
205; declaration.  You're encouraged to try and turn this option Off and make
206; sure your scripts work properly with it in order to ensure they will work
207; with future versions of the language (you will receive a warning each time
208; you use this feature, and the argument will be passed by value instead of by
209; reference).
210allow_call_time_pass_reference = Off
211;allow_call_time_pass_reference = On; change200809
212
213;
214; Safe Mode
215;
216safe_mode = Off
217
218; By default, Safe Mode does a UID compare check when
219; opening files. If you want to relax this to a GID compare,
220; then turn on safe_mode_gid.
221safe_mode_gid = Off
222
223; When safe_mode is on, UID/GID checks are bypassed when
224; including files from this directory and its subdirectories.
225; (directory must also be in include_path or full path must
226; be used when including)
227safe_mode_include_dir =
228
229; When safe_mode is on, only executables located in the safe_mode_exec_dir
230; will be allowed to be executed via the exec family of functions.
231safe_mode_exec_dir =
232
233; Setting certain environment variables may be a potential security breach.
234; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
235; the user may only alter environment variables whose names begin with the
236; prefixes supplied here.  By default, users will only be able to set
237; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
238;
239; Note:  If this directive is empty, PHP will let the user modify ANY
240; environment variable!
241safe_mode_allowed_env_vars = PHP_
242
243; This directive contains a comma-delimited list of environment variables that
244; the end user won't be able to change using putenv().  These variables will be
245; protected even if safe_mode_allowed_env_vars is set to allow to change them.
246safe_mode_protected_env_vars = LD_LIBRARY_PATH
247
248; open_basedir, if set, limits all file operations to the defined directory
249; and below.  This directive makes most sense if used in a per-directory
250; or per-virtualhost web server configuration file. This directive is
251; *NOT* affected by whether Safe Mode is turned On or Off.
252;open_basedir =
253
254; This directive allows you to disable certain functions for security reasons.
255; It receives a comma-delimited list of function names. This directive is
256; *NOT* affected by whether Safe Mode is turned On or Off.
257disable_functions =
258
259; This directive allows you to disable certain classes for security reasons.
260; It receives a comma-delimited list of class names. This directive is
261; *NOT* affected by whether Safe Mode is turned On or Off.
262disable_classes =
263
264; Colors for Syntax Highlighting mode.  Anything that's acceptable in
265; <span style="color: ???????"> would work.
266;highlight.string  = #DD0000
267;highlight.comment = #FF9900
268;highlight.keyword = #007700
269;highlight.bg      = #FFFFFF
270;highlight.default = #0000BB
271;highlight.html    = #000000
272
273; If enabled, the request will be allowed to complete even if the user aborts
274; the request. Consider enabling it if executing long request, which may end up
275; being interrupted by the user or a browser timing out.
276; ignore_user_abort = On
277
278; Determines the size of the realpath cache to be used by PHP. This value should
279; be increased on systems where PHP opens many files to reflect the quantity of
280; the file operations performed.
281; realpath_cache_size=16k
282
283; Duration of time, in seconds for which to cache realpath information for a given
284; file or directory. For systems with rarely changing files, consider increasing this
285; value.
286; realpath_cache_ttl=120
287
288;
289; Misc
290;
291; Decides whether PHP may expose the fact that it is installed on the server
292; (e.g. by adding its signature to the Web server header).  It is no security
293; threat in any way, but it makes it possible to determine whether you use PHP
294; on your server or not.
295expose_php = Off
296;expose_php = Off ; change200809
297
298
299;;;;;;;;;;;;;;;;;;;
300; Resource Limits ;
301;;;;;;;;;;;;;;;;;;;
302
303max_execution_time = 60     ; Maximum execution time of each script, in seconds
304max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
305;max_input_nesting_level = 64 ; Maximum input variable nesting level
306memory_limit = 128M      ; Maximum amount of memory a script may consume (128MB)
307
308
309;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
310; Error handling and logging ;
311;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
312
313; error_reporting is a bit-field.  Or each number up to get desired error
314; reporting level
315; E_ALL             - All errors and warnings (doesn't include E_STRICT)
316; E_ERROR           - fatal run-time errors
317; E_RECOVERABLE_ERROR  - almost fatal run-time errors
318; E_WARNING         - run-time warnings (non-fatal errors)
319; E_PARSE           - compile-time parse errors
320; E_NOTICE          - run-time notices (these are warnings which often result
321;                     from a bug in your code, but it's possible that it was
322;                     intentional (e.g., using an uninitialized variable and
323;                     relying on the fact it's automatically initialized to an
324;                     empty string)
325; E_STRICT          - run-time notices, enable to have PHP suggest changes
326;                     to your code which will ensure the best interoperability
327;                     and forward compatibility of your code
328; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
329; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
330;                     initial startup
331; E_COMPILE_ERROR   - fatal compile-time errors
332; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
333; E_USER_ERROR      - user-generated error message
334; E_USER_WARNING    - user-generated warning message
335; E_USER_NOTICE     - user-generated notice message
336;
337; Examples:
338;
339;   - Show all errors, except for notices and coding standards warnings
340;
341;error_reporting = E_ALL & ~E_NOTICE
342;
343;   - Show all errors, except for notices
344;
345;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
346;
347;   - Show only errors
348;
349;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
350;
351;   - Show all errors, except coding standards warnings
352;
353error_reporting  =  E_ALL & ~E_NOTICE
354;error_reporting  =  E_ALL ; change200809
355
356; Print out errors (as a part of the output).  For production web sites,
357; you're strongly encouraged to turn this feature off, and use error logging
358; instead (see below).  Keeping display_errors enabled on a production web site
359; may reveal security information to end users, such as file paths on your Web
360; server, your database schema or other information.
361;
362; possible values for display_errors:
363;
364; Off          - Do not display any errors
365; stderr       - Display errors to STDERR (affects only CGI/CLI binaries!)   
366; On or stdout - Display errors to STDOUT (default)
367
368; To output errors to STDERR with CGI/CLI:             
369;display_errors = "stderr"
370;
371; Default
372;
373display_errors = Off
374
375; Even when display_errors is on, errors that occur during PHP's startup
376; sequence are not displayed.  It's strongly recommended to keep
377; display_startup_errors off, except for when debugging.
378display_startup_errors = Off
379
380; Log errors into a log file (server-specific log, stderr, or error_log (below))
381; As stated above, you're strongly advised to use error logging in place of
382; error displaying on production web sites.
383log_errors = On
384
385; Set maximum length of log_errors. In error_log information about the source is
386; added. The default is 1024 and 0 allows to not apply any maximum length at all.
387log_errors_max_len = 1024
388
389; Do not log repeated messages. Repeated errors must occur in same file on same
390; line until ignore_repeated_source is set true.
391ignore_repeated_errors = On
392;ignore_repeated_errors = Off ; change200809
393
394; Ignore source of message when ignoring repeated messages. When this setting
395; is On you will not log errors with repeated messages from different files or
396; source lines.
397ignore_repeated_source = Off
398
399; If this parameter is set to Off, then memory leaks will not be shown (on
400; stdout or in the log). This has only effect in a debug compile, and if
401; error reporting includes E_WARNING in the allowed list
402report_memleaks = On
403
404;report_zend_debug = 0
405
406; Store the last error/warning message in $php_errormsg (boolean).
407track_errors = Off
408
409; Disable the inclusion of HTML tags in error messages.
410; Note: Never use this feature for production boxes.
411;html_errors = Off
412
413; If html_errors is set On PHP produces clickable error messages that direct
414; to a page describing the error or function causing the error in detail.
415; You can download a copy of the PHP manual from http://www.php.net/docs.php
416; and change docref_root to the base URL of your local copy including the
417; leading '/'. You must also specify the file extension being used including
418; the dot.
419; Note: Never use this feature for production boxes.
420;docref_root = "/phpmanual/"
421;docref_ext = .html
422
423; String to output before an error message.
424;error_prepend_string = "<font color=ff0000>"
425
426; String to output after an error message.
427;error_append_string = "</font>"
428
429; Log errors to specified file.
430;error_log = filename
431
432; Log errors to syslog (Event Log on NT, not valid in Windows 95).
433error_log = syslog
434;error_log = syslog; change200809
435
436
437;;;;;;;;;;;;;;;;;
438; Data Handling ;
439;;;;;;;;;;;;;;;;;
440;
441; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
442
443; The separator used in PHP generated URLs to separate arguments.
444; Default is "&".
445;arg_separator.output = "&amp;"
446
447; List of separator(s) used by PHP to parse input URLs into variables.
448; Default is "&".
449; NOTE: Every character in this directive is considered as separator!
450;arg_separator.input = ";&"
451
452; This directive describes the order in which PHP registers GET, POST, Cookie,
453; Environment and Built-in variables (G, P, C, E & S respectively, often
454; referred to as EGPCS or GPC).  Registration is done from left to right, newer
455; values override older values.
456variables_order = "EGPCS"
457
458; Whether or not to register the EGPCS variables as global variables.  You may
459; want to turn this off if you don't want to clutter your scripts' global scope
460; with user data.  This makes most sense when coupled with track_vars - in which
461; case you can access all of the GPC variables through the $HTTP_*_VARS[],
462; variables.
463;
464; You should do your best to write your scripts so that they do not require
465; register_globals to be on;  Using form variables as globals can easily lead
466; to possible security problems, if the code is not very well thought of.
467register_globals = Off
468
469; Whether or not to register the old-style input arrays, HTTP_GET_VARS
470; and friends.  If you're not using them, it's recommended to turn them off,
471; for performance reasons.
472register_long_arrays = On
473;register_long_arrays = Off ; change200809
474
475; This directive tells PHP whether to declare the argv&argc variables (that
476; would contain the GET information).  If you don't use these variables, you
477; should turn it off for increased performance.
478register_argc_argv = Off
479
480; When enabled, the SERVER and ENV variables are created when they're first
481; used (Just In Time) instead of when the script starts. If these variables
482; are not used within a script, having this directive on will result in a
483; performance gain. The PHP directives register_globals, register_long_arrays,
484; and register_argc_argv must be disabled for this directive to have any affect.
485auto_globals_jit = On
486
487; Maximum size of POST data that PHP will accept.
488post_max_size = 21M
489;post_max_size = 21M ; change200809
490
491; Magic quotes
492;
493
494; Magic quotes for incoming GET/POST/Cookie data.
495magic_quotes_gpc = Off
496
497; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
498magic_quotes_runtime = Off
499
500; Use Sybase-style magic quotes (escape ' with '' instead of \').
501magic_quotes_sybase = Off
502
503; Automatically add files before or after any PHP document.
504auto_prepend_file =
505auto_append_file =
506
507; As of 4.0b4, PHP always outputs a character encoding by default in
508; the Content-type: header.  To disable sending of the charset, simply
509; set it to be empty.
510;
511; PHP's built-in default is text/html
512default_mimetype = "text/html"
513;default_charset = "iso-8859-1"
514
515; Always populate the $HTTP_RAW_POST_DATA variable.
516;always_populate_raw_post_data = On
517
518
519;;;;;;;;;;;;;;;;;;;;;;;;;
520; Paths and Directories ;
521;;;;;;;;;;;;;;;;;;;;;;;;;
522
523; UNIX: "/path1:/path2"
524;include_path = ".:/php/includes"
525;
526; Windows: "\path1;\path2"
527;include_path = ".;c:\php\includes"
528
529; The root of the PHP pages, used only if nonempty.
530; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
531; if you are running php as a CGI under any web server (other than IIS)
532; see documentation for security issues.  The alternate is to use the
533; cgi.force_redirect configuration below
534doc_root =
535
536; The directory under which PHP opens the script using /~username used only
537; if nonempty.
538user_dir =
539
540; Whether or not to enable the dl() function.  The dl() function does NOT work
541; properly in multithreaded servers, such as IIS or Zeus, and is automatically
542; disabled on them.
543enable_dl = On
544
545; cgi.force_redirect is necessary to provide security running PHP as a CGI under
546; most web servers.  Left undefined, PHP turns this on by default.  You can
547; turn it off here AT YOUR OWN RISK
548; **You CAN safely turn this off for IIS, in fact, you MUST.**
549; cgi.force_redirect = 1
550
551; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
552; every request.
553; cgi.nph = 1
554
555; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
556; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
557; will look for to know it is OK to continue execution.  Setting this variable MAY
558; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
559; cgi.redirect_status_env = ;
560
561; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
562; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
563; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
564; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
565; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
566; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
567; cgi.fix_pathinfo=1
568
569; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
570; security tokens of the calling client.  This allows IIS to define the
571; security context that the request runs under.  mod_fastcgi under Apache
572; does not currently support this feature (03/17/2002)
573; Set to 1 if running under IIS.  Default is zero.
574; fastcgi.impersonate = 1;
575
576; Disable logging through FastCGI connection
577; fastcgi.logging = 0
578
579; cgi.rfc2616_headers configuration option tells PHP what type of headers to
580; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
581; is supported by Apache. When this option is set to 1 PHP will send
582; RFC2616 compliant header.
583; Default is zero.
584;cgi.rfc2616_headers = 0
585
586
587;;;;;;;;;;;;;;;;
588; File Uploads ;
589;;;;;;;;;;;;;;;;
590
591; Whether to allow HTTP file uploads.
592file_uploads = On
593
594; Temporary directory for HTTP uploaded files (will use system default if not
595; specified).
596;upload_tmp_dir =
597
598; Maximum allowed size for uploaded files.
599upload_max_filesize = 20M
600;upload_max_filesize = 2M; change200809
601
602
603;;;;;;;;;;;;;;;;;;
604; Fopen wrappers ;
605;;;;;;;;;;;;;;;;;;
606
607; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
608allow_url_fopen = On
609
610; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
611allow_url_include = Off
612
613; Define the anonymous ftp password (your email address)
614;from="john@doe.com"
615
616; Define the User-Agent string
617; user_agent="PHP"
618
619; Default timeout for socket based streams (seconds)
620default_socket_timeout = 60
621
622; If your scripts have to deal with files from Macintosh systems,
623; or you are running on a Mac and need to deal with files from
624; unix or win32 systems, setting this flag will cause PHP to
625; automatically detect the EOL character in those files so that
626; fgets() and file() will work regardless of the source of the file.
627; auto_detect_line_endings = Off
628
629
630;;;;;;;;;;;;;;;;;;;;;;
631; Dynamic Extensions ;
632;;;;;;;;;;;;;;;;;;;;;;
633;
634; If you wish to have an extension loaded automatically, use the following
635; syntax:
636;
637;   extension=modulename.extension
638;
639; For example:
640;
641;   extension=msql.so
642;
643; Note that it should be the name of the module only; no directory information
644; needs to go here.  Specify the location of the extension with the
645; extension_dir directive above.
646
647 
648;;;;
649; Note: packaged extension modules are now loaded via the .ini files
650; found in the directory /etc/php.d; these are loaded by default.
651;;;;
652
653
654;;;;;;;;;;;;;;;;;;;
655; Module Settings ;
656;;;;;;;;;;;;;;;;;;;
657
658[Date]
659; Defines the default timezone used by the date functions
660;date.timezone =
661
662;date.default_latitude = 31.7667
663;date.default_longitude = 35.2333
664
665;date.sunrise_zenith = 90.583333
666;date.sunset_zenith = 90.583333
667
668[filter]
669;filter.default = unsafe_raw
670;filter.default_flags =
671
672[iconv]
673;iconv.input_encoding = ISO-8859-1
674;iconv.internal_encoding = ISO-8859-1
675;iconv.output_encoding = ISO-8859-1
676
677[sqlite]
678;sqlite.assoc_case = 0
679
680[xmlrpc]
681;xmlrpc_error_number = 0
682;xmlrpc_errors = 0
683
684[Pcre]
685;PCRE library backtracking limit.
686;pcre.backtrack_limit=100000
687
688;PCRE library recursion limit.
689;Please note that if you set this value to a high number you may consume all
690;the available process stack and eventually crash PHP (due to reaching the
691;stack size limit imposed by the Operating System).
692;pcre.recursion_limit=100000
693
694[Syslog]
695; Whether or not to define the various syslog variables (e.g. $LOG_PID,
696; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
697; runtime, you can define these variables by calling define_syslog_variables().
698define_syslog_variables  = Off
699
700[mail function]
701; For Win32 only.
702SMTP = localhost
703smtp_port = 25
704
705; For Win32 only.
706;sendmail_from = me@example.com
707
708; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
709sendmail_path = /usr/sbin/sendmail -t -i
710
711; Force the addition of the specified parameters to be passed as extra parameters
712; to the sendmail binary. These parameters will always replace the value of
713; the 5th parameter to mail(), even in safe mode.
714;mail.force_extra_parameters =
715
716[SQL]
717sql.safe_mode = Off
718
719[ODBC]
720;odbc.default_db    =  Not yet implemented
721;odbc.default_user  =  Not yet implemented
722;odbc.default_pw    =  Not yet implemented
723
724; Allow or prevent persistent links.
725odbc.allow_persistent = On
726
727; Check that a connection is still valid before reuse.
728odbc.check_persistent = On
729
730; Maximum number of persistent links.  -1 means no limit.
731odbc.max_persistent = -1
732
733; Maximum number of links (persistent + non-persistent).  -1 means no limit.
734odbc.max_links = -1
735
736; Handling of LONG fields.  Returns number of bytes to variables.  0 means
737; passthru.
738odbc.defaultlrl = 4096
739
740; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
741; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
742; of uodbc.defaultlrl and uodbc.defaultbinmode
743odbc.defaultbinmode = 1
744
745[MySQL]
746; Allow or prevent persistent links.
747mysql.allow_persistent = On
748
749; Maximum number of persistent links.  -1 means no limit.
750mysql.max_persistent = -1
751
752; Maximum number of links (persistent + non-persistent).  -1 means no limit.
753mysql.max_links = -1
754
755; Default port number for mysql_connect().  If unset, mysql_connect() will use
756; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
757; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
758; at MYSQL_PORT.
759mysql.default_port =
760
761; Default socket name for local MySQL connects.  If empty, uses the built-in
762; MySQL defaults.
763mysql.default_socket =
764
765; Default host for mysql_connect() (doesn't apply in safe mode).
766mysql.default_host =
767
768; Default user for mysql_connect() (doesn't apply in safe mode).
769mysql.default_user =
770
771; Default password for mysql_connect() (doesn't apply in safe mode).
772; Note that this is generally a *bad* idea to store passwords in this file.
773; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
774; and reveal this password!  And of course, any users with read access to this
775; file will be able to reveal the password as well.
776mysql.default_password =
777
778; Maximum time (in seconds) for connect timeout. -1 means no limit
779mysql.connect_timeout = 60
780
781; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
782; SQL-Errors will be displayed.
783mysql.trace_mode = Off
784
785[MySQLi]
786
787; Maximum number of links.  -1 means no limit.
788mysqli.max_links = -1
789
790; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
791; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
792; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
793; at MYSQL_PORT.
794mysqli.default_port = 3306
795
796; Default socket name for local MySQL connects.  If empty, uses the built-in
797; MySQL defaults.
798mysqli.default_socket =
799
800; Default host for mysql_connect() (doesn't apply in safe mode).
801mysqli.default_host =
802
803; Default user for mysql_connect() (doesn't apply in safe mode).
804mysqli.default_user =
805
806; Default password for mysqli_connect() (doesn't apply in safe mode).
807; Note that this is generally a *bad* idea to store passwords in this file.
808; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
809; and reveal this password!  And of course, any users with read access to this
810; file will be able to reveal the password as well.
811mysqli.default_pw =
812
813; Allow or prevent reconnect
814mysqli.reconnect = Off
815
816[mSQL]
817; Allow or prevent persistent links.
818msql.allow_persistent = On
819
820; Maximum number of persistent links.  -1 means no limit.
821msql.max_persistent = -1
822
823; Maximum number of links (persistent+non persistent).  -1 means no limit.
824msql.max_links = -1
825
826[PostgresSQL]
827; Allow or prevent persistent links.
828pgsql.allow_persistent = On
829
830; Detect broken persistent links always with pg_pconnect().
831; Auto reset feature requires a little overheads.
832pgsql.auto_reset_persistent = Off
833
834; Maximum number of persistent links.  -1 means no limit.
835pgsql.max_persistent = -1
836
837; Maximum number of links (persistent+non persistent).  -1 means no limit.
838pgsql.max_links = -1
839
840; Ignore PostgreSQL backends Notice message or not.
841; Notice message logging require a little overheads.
842pgsql.ignore_notice = 0
843
844; Log PostgreSQL backends Noitce message or not.
845; Unless pgsql.ignore_notice=0, module cannot log notice message.
846pgsql.log_notice = 0
847
848[Sybase]
849; Allow or prevent persistent links.
850;sybase.allow_persistent = On
851
852; Maximum number of persistent links.  -1 means no limit.
853;sybase.max_persistent = -1
854
855; Maximum number of links (persistent + non-persistent).  -1 means no limit.
856;sybase.max_links = -1
857
858;sybase.interface_file = "/usr/sybase/interfaces"
859
860; Minimum error severity to display.
861;sybase.min_error_severity = 10
862
863; Minimum message severity to display.
864;sybase.min_message_severity = 10
865
866; Compatibility mode with old versions of PHP 3.0.
867; If on, this will cause PHP to automatically assign types to results according
868; to their Sybase type, instead of treating them all as strings.  This
869; compatibility mode will probably not stay around forever, so try applying
870; whatever necessary changes to your code, and turn it off.
871;sybase.compatability_mode = Off
872
873[Sybase-CT]
874; Allow or prevent persistent links.
875;sybct.allow_persistent = On
876
877; Maximum number of persistent links.  -1 means no limit.
878;sybct.max_persistent = -1
879
880; Maximum number of links (persistent + non-persistent).  -1 means no limit.
881;sybct.max_links = -1
882
883; Minimum server message severity to display.
884;sybct.min_server_severity = 10
885
886; Minimum client message severity to display.
887;sybct.min_client_severity = 10
888
889[bcmath]
890; Number of decimal digits for all bcmath functions.
891bcmath.scale = 0
892
893[browscap]
894;browscap = extra/browscap.ini
895
896[Informix]
897; Default host for ifx_connect() (doesn't apply in safe mode).
898ifx.default_host =
899
900; Default user for ifx_connect() (doesn't apply in safe mode).
901ifx.default_user =
902
903; Default password for ifx_connect() (doesn't apply in safe mode).
904ifx.default_password =
905
906; Allow or prevent persistent links.
907ifx.allow_persistent = On
908
909; Maximum number of persistent links.  -1 means no limit.
910ifx.max_persistent = -1
911
912; Maximum number of links (persistent + non-persistent).  -1 means no limit.
913ifx.max_links = -1
914
915; If on, select statements return the contents of a text blob instead of its id.
916ifx.textasvarchar = 0
917
918; If on, select statements return the contents of a byte blob instead of its id.
919ifx.byteasvarchar = 0
920
921; Trailing blanks are stripped from fixed-length char columns.  May help the
922; life of Informix SE users.
923ifx.charasvarchar = 0
924
925; If on, the contents of text and byte blobs are dumped to a file instead of
926; keeping them in memory.
927ifx.blobinfile = 0
928
929; NULL's are returned as empty strings, unless this is set to 1.  In that case,
930; NULL's are returned as string 'NULL'.
931ifx.nullformat = 0
932
933[Session]
934; Handler used to store/retrieve data.
935session.save_handler = files
936
937; Argument passed to save_handler.  In the case of files, this is the path
938; where data files are stored. Note: Windows users have to change this
939; variable in order to use PHP's session functions.
940;
941; As of PHP 4.0.1, you can define the path as:
942;
943;     session.save_path = "N;/path"
944;
945; where N is an integer.  Instead of storing all the session files in
946; /path, what this will do is use subdirectories N-levels deep, and
947; store the session data in those directories.  This is useful if you
948; or your OS have problems with lots of files in one directory, and is
949; a more efficient layout for servers that handle lots of sessions.
950;
951; NOTE 1: PHP will not create this directory structure automatically.
952;         You can use the script in the ext/session dir for that purpose.
953; NOTE 2: See the section on garbage collection below if you choose to
954;         use subdirectories for session storage
955;
956; The file storage module creates files using mode 600 by default.
957; You can change that by using
958;
959;     session.save_path = "N;MODE;/path"
960;
961; where MODE is the octal representation of the mode. Note that this
962; does not overwrite the process's umask.
963session.save_path = "/var/lib/php/session"
964
965; Whether to use cookies.
966session.use_cookies = 1
967
968;session.cookie_secure =
969
970; This option enables administrators to make their users invulnerable to
971; attacks which involve passing session ids in URLs; defaults to 0.
972; session.use_only_cookies = 1
973
974; Name of the session (used as cookie name).
975session.name = PHPSESSID
976
977; Initialize session on request startup.
978session.auto_start = 1
979
980; Lifetime in seconds of cookie or, if 0, until browser is restarted.
981session.cookie_lifetime = 0
982
983; The path for which the cookie is valid.
984session.cookie_path = /
985
986; The domain for which the cookie is valid.
987session.cookie_domain =
988
989; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
990session.cookie_httponly =
991
992; Handler used to serialize data.  php is the standard serializer of PHP.
993session.serialize_handler = php
994
995; Define the probability that the 'garbage collection' process is started
996; on every session initialization.
997; The probability is calculated by using gc_probability/gc_divisor,
998; e.g. 1/100 means there is a 1% chance that the GC process starts
999; on each request.
1000
1001session.gc_probability = 1
1002session.gc_divisor     = 1000
1003
1004; After this number of seconds, stored data will be seen as 'garbage' and
1005; cleaned up by the garbage collection process.
1006session.gc_maxlifetime = 1440
1007
1008; NOTE: If you are using the subdirectory option for storing session files
1009;       (see session.save_path above), then garbage collection does *not*
1010;       happen automatically.  You will need to do your own garbage
1011;       collection through a shell script, cron entry, or some other method.
1012;       For example, the following script would is the equivalent of
1013;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1014;          cd /path/to/sessions; find -cmin +24 | xargs rm
1015
1016; PHP 4.2 and less have an undocumented feature/bug that allows you to
1017; to initialize a session variable in the global scope, albeit register_globals
1018; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
1019; You can disable the feature and the warning separately. At this time,
1020; the warning is only displayed, if bug_compat_42 is enabled.
1021
1022session.bug_compat_42 = 0
1023session.bug_compat_warn = 1
1024
1025; Check HTTP Referer to invalidate externally stored URLs containing ids.
1026; HTTP_REFERER has to contain this substring for the session to be
1027; considered as valid.
1028session.referer_check =
1029
1030; How many bytes to read from the file.
1031session.entropy_length = 0
1032
1033; Specified here to create the session id.
1034session.entropy_file =
1035
1036;session.entropy_length = 16
1037
1038;session.entropy_file = /dev/urandom
1039
1040; Set to {nocache,private,public,} to determine HTTP caching aspects
1041; or leave this empty to avoid sending anti-caching headers.
1042session.cache_limiter = nocache
1043
1044; Document expires after n minutes.
1045session.cache_expire = 180
1046
1047; trans sid support is disabled by default.
1048; Use of trans sid may risk your users security.
1049; Use this option with caution.
1050; - User may send URL contains active session ID
1051;   to other person via. email/irc/etc.
1052; - URL that contains active session ID may be stored
1053;   in publically accessible computer.
1054; - User may access your site with the same session ID
1055;   always using URL stored in browser's history or bookmarks.
1056session.use_trans_sid = 0
1057
1058; Select a hash function
1059; 0: MD5   (128 bits)
1060; 1: SHA-1 (160 bits)
1061session.hash_function = 0
1062
1063; Define how many bits are stored in each character when converting
1064; the binary hash data to something readable.
1065;
1066; 4 bits: 0-9, a-f
1067; 5 bits: 0-9, a-v
1068; 6 bits: 0-9, a-z, A-Z, "-", ","
1069session.hash_bits_per_character = 5
1070
1071; The URL rewriter will look for URLs in a defined set of HTML tags.
1072; form/fieldset are special; if you include them here, the rewriter will
1073; add a hidden <input> field with the info which is otherwise appended
1074; to URLs.  If you want XHTML conformity, remove the form entry.
1075; Note that all valid entries require a "=", even if no value follows.
1076url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1077
1078[MSSQL]
1079; Allow or prevent persistent links.
1080mssql.allow_persistent = On
1081
1082; Maximum number of persistent links.  -1 means no limit.
1083mssql.max_persistent = -1
1084
1085; Maximum number of links (persistent+non persistent).  -1 means no limit.
1086mssql.max_links = -1
1087
1088; Minimum error severity to display.
1089mssql.min_error_severity = 10
1090
1091; Minimum message severity to display.
1092mssql.min_message_severity = 10
1093
1094; Compatibility mode with old versions of PHP 3.0.
1095mssql.compatability_mode = Off
1096
1097; Connect timeout
1098;mssql.connect_timeout = 5
1099
1100; Query timeout
1101;mssql.timeout = 60
1102
1103; Valid range 0 - 2147483647.  Default = 4096.
1104;mssql.textlimit = 4096
1105
1106; Valid range 0 - 2147483647.  Default = 4096.
1107;mssql.textsize = 4096
1108
1109; Limits the number of records in each batch.  0 = all records in one batch.
1110;mssql.batchsize = 0
1111
1112; Specify how datetime and datetim4 columns are returned
1113; On => Returns data converted to SQL server settings
1114; Off => Returns values as YYYY-MM-DD hh:mm:ss
1115;mssql.datetimeconvert = On
1116
1117; Use NT authentication when connecting to the server
1118mssql.secure_connection = Off
1119
1120; Specify max number of processes. -1 = library default
1121; msdlib defaults to 25
1122; FreeTDS defaults to 4096
1123;mssql.max_procs = -1
1124
1125; Specify client character set.
1126; If empty or not set the client charset from freetds.comf is used
1127; This is only used when compiled with FreeTDS
1128;mssql.charset = "ISO-8859-1"
1129
1130[Assertion]
1131; Assert(expr); active by default.
1132;assert.active = On
1133
1134; Issue a PHP warning for each failed assertion.
1135;assert.warning = On
1136
1137; Don't bail out by default.
1138;assert.bail = Off
1139
1140; User-function to be called if an assertion fails.
1141;assert.callback = 0
1142
1143; Eval the expression with current error_reporting().  Set to true if you want
1144; error_reporting(0) around the eval().
1145;assert.quiet_eval = 0
1146
1147[COM]
1148; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
1149;com.typelib_file =
1150; allow Distributed-COM calls
1151;com.allow_dcom = true
1152; autoregister constants of a components typlib on com_load()
1153;com.autoregister_typelib = true
1154; register constants casesensitive
1155;com.autoregister_casesensitive = false
1156; show warnings on duplicate constant registrations
1157;com.autoregister_verbose = true
1158
1159[mbstring]
1160; language for internal character representation.
1161;mbstring.language = Japanese
1162
1163; internal/script encoding.
1164; Some encoding cannot work as internal encoding.
1165; (e.g. SJIS, BIG5, ISO-2022-*)
1166;mbstring.internal_encoding = EUC-JP
1167
1168; http input encoding.
1169;mbstring.http_input = auto
1170
1171; http output encoding. mb_output_handler must be
1172; registered as output buffer to function
1173;mbstring.http_output = SJIS
1174
1175; enable automatic encoding translation according to
1176; mbstring.internal_encoding setting. Input chars are
1177; converted to internal encoding by setting this to On.
1178; Note: Do _not_ use automatic encoding translation for
1179;       portable libs/applications.
1180;mbstring.encoding_translation = Off
1181
1182; automatic encoding detection order.
1183; auto means
1184;mbstring.detect_order = auto
1185
1186; substitute_character used when character cannot be converted
1187; one from another
1188;mbstring.substitute_character = none;
1189
1190; overload(replace) single byte functions by mbstring functions.
1191; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1192; etc. Possible values are 0,1,2,4 or combination of them.
1193; For example, 7 for overload everything.
1194; 0: No overload
1195; 1: Overload mail() function
1196; 2: Overload str*() functions
1197; 4: Overload ereg*() functions
1198mbstring.func_overload = 7
1199;mbstring.func_overload = 0
1200
1201; enable strict encoding detection.
1202;mbstring.strict_encoding = Off
1203
1204[FrontBase]
1205;fbsql.allow_persistent = On
1206;fbsql.autocommit = On
1207;fbsql.show_timestamp_decimals = Off
1208;fbsql.default_database =
1209;fbsql.default_database_password =
1210;fbsql.default_host =
1211;fbsql.default_password =
1212;fbsql.default_user = "_SYSTEM"
1213;fbsql.generate_warnings = Off
1214;fbsql.max_connections = 128
1215;fbsql.max_links = 128
1216;fbsql.max_persistent = -1
1217;fbsql.max_results = 128
1218
1219[gd]
1220; Tell the jpeg decode to libjpeg warnings and try to create
1221; a gd image. The warning will then be displayed as notices
1222; disabled by default
1223;gd.jpeg_ignore_warning = 0
1224
1225[exif]
1226; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
1227; With mbstring support this will automatically be converted into the encoding
1228; given by corresponding encode setting. When empty mbstring.internal_encoding
1229; is used. For the decode settings you can distinguish between motorola and
1230; intel byte order. A decode setting cannot be empty.
1231;exif.encode_unicode = ISO-8859-15
1232;exif.decode_unicode_motorola = UCS-2BE
1233;exif.decode_unicode_intel    = UCS-2LE
1234;exif.encode_jis =
1235;exif.decode_jis_motorola = JIS
1236;exif.decode_jis_intel    = JIS
1237
1238[Tidy]
1239; The path to a default tidy configuration file to use when using tidy
1240;tidy.default_config = /usr/local/lib/php/default.tcfg
1241
1242; Should tidy clean and repair output automatically?
1243; WARNING: Do not use this option if you are generating non-html content
1244; such as dynamic images
1245tidy.clean_output = Off
1246
1247[soap]
1248; Enables or disables WSDL caching feature.
1249soap.wsdl_cache_enabled=1
1250; Sets the directory name where SOAP extension will put cache files.
1251soap.wsdl_cache_dir="/tmp"
1252; (time to live) Sets the number of second while cached file will be used
1253; instead of original one.
1254soap.wsdl_cache_ttl=86400
1255
1256; Local Variables:
1257; tab-width: 4
1258; End:
1259
1260[OCI8]
1261; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
1262;oci8.privileged_connect = Off
1263
1264; Connection: The maximum number of persistent OCI8 connections per
1265; process. Using -1 means no limit.
1266;oci8.max_persistent = -1
1267
1268; Connection: The maximum number of seconds a process is allowed to
1269; maintain an idle persistent connection. Using -1 means idle
1270; persistent connections will be maintained forever.
1271;oci8.persistent_timeout = -1
1272
1273; Connection: The number of seconds that must pass before issuing a
1274; ping during oci_pconnect() to check the connection validity. When
1275; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1276; pings completely.
1277;oci8.ping_interval = 60
1278
1279; Tuning: This option enables statement caching, and specifies how
1280; many statements to cache. Using 0 disables statement caching.
1281;oci8.statement_cache_size = 20
1282
1283; Tuning: Enables statement prefetching and sets the default number of
1284; rows that will be fetched automatically after statement execution.
1285;oci8.default_prefetch = 10
1286
1287; Compatibility. Using On means oci_close() will not close
1288; oci_connect() and oci_new_connect() connections.
1289;oci8.old_oci_close_semantics = Off
1290