Ticket #2586: php-ini.txt

File php-ini.txt, 4.6 KB (added by willneelen, 16 years ago)
Line 
1Thanks for your quick response.
2I added the error reporting section from the php.ini below:
3
4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
5; Error handling and logging ;
6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
8; error_reporting is a bit-field.  Or each number up to get desired error
9; reporting level
10; E_ALL             - All errors and warnings (doesn't include E_STRICT)
11; E_ERROR           - fatal run-time errors
12; E_WARNING         - run-time warnings (non-fatal errors)
13; E_PARSE           - compile-time parse errors
14; E_NOTICE          - run-time notices (these are warnings which often result
15;                     from a bug in your code, but it's possible that it was
16;                     intentional (e.g., using an uninitialized variable and
17;                     relying on the fact it's automatically initialized to an
18;                     empty string)
19; E_STRICT                      - run-time notices, enable to have PHP suggest changes
20;                     to your code which will ensure the best interoperability
21;                     and forward compatibility of your code
22; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
23; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
24;                     initial startup
25; E_COMPILE_ERROR   - fatal compile-time errors
26; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
27; E_USER_ERROR      - user-generated error message
28; E_USER_WARNING    - user-generated warning message
29; E_USER_NOTICE     - user-generated notice message
30;
31; Examples:
32;
33;   - Show all errors, except for notices and coding standards warnings
34;
35;error_reporting = E_ALL & ~E_NOTICE
36;
37;   - Show all errors, except for notices
38;
39;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
40;
41;   - Show only errors
42;
43;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
44;
45;   - Show all errors except for notices and coding standards warnings
46;
47error_reporting  = E_ALL; display all errors, warnings and notices
48
49; Print out errors (as a part of the output).  For production web sites,
50; you're strongly encouraged to turn this feature off, and use error logging
51; instead (see below).  Keeping display_errors enabled on a production web site
52; may reveal security information to end users, such as file paths on your Web
53; server, your database schema or other information.
54display_errors = On
55
56; Even when display_errors is on, errors that occur during PHP's startup
57; sequence are not displayed.  It's strongly recommended to keep
58; display_startup_errors off, except for when debugging.
59display_startup_errors = Off
60
61; Log errors into a log file (server-specific log, stderr, or error_log (below))
62; As stated above, you're strongly advised to use error logging in place of
63; error displaying on production web sites.
64log_errors = On
65
66; Set maximum length of log_errors. In error_log information about the source is
67; added. The default is 1024 and 0 allows to not apply any maximum length at all.
68log_errors_max_len = 1024
69
70; Do not log repeated messages. Repeated errors must occur in same file on same
71; line until ignore_repeated_source is set true.
72ignore_repeated_errors = Off
73
74; Ignore source of message when ignoring repeated messages. When this setting
75; is On you will not log errors with repeated messages from different files or
76; sourcelines.
77ignore_repeated_source = Off
78
79; If this parameter is set to Off, then memory leaks will not be shown (on
80; stdout or in the log). This has only effect in a debug compile, and if
81; error reporting includes E_WARNING in the allowed list
82report_memleaks = On
83
84; Store the last error/warning message in $php_errormsg (boolean).
85track_errors = on
86
87; Disable the inclusion of HTML tags in error messages.
88; Note: Never use this feature for production boxes.
89;html_errors = Off
90
91; If html_errors is set On PHP produces clickable error messages that direct
92; to a page describing the error or function causing the error in detail.
93; You can download a copy of the PHP manual from http://www.php.net/docs.php
94; and change docref_root to the base URL of your local copy including the
95; leading '/'. You must also specify the file extension being used including
96; the dot.
97; Note: Never use this feature for production boxes.
98;docref_root = "/phpmanual/"
99;docref_ext = .html
100
101; String to output before an error message.
102;error_prepend_string = "<font color=ff0000>"
103
104; String to output after an error message.
105error_append_string = "</font>"
106
107; Log errors to specified file.
108error_log = c:\Temp\error.txt
109
110; Log errors to syslog (Event Log on NT, not valid in Windows 95).
111error_log = syslog
112
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy