rfc:error-formatting-for-developers
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | rfc:error-formatting-for-developers [2011/08/10 16:24] – [Changelog] derick | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Request for Comments: Error message formatting for development ====== | ||
+ | * Version: 1 | ||
+ | * Date: 2011-07-26 | ||
+ | * Author: Derick Rethans < | ||
+ | * Status: Voting | ||
+ | * Related RFCs: https:// | ||
+ | |||
+ | ===== Abstract ===== | ||
+ | |||
+ | This RFC discusses the restoring of pre-PHP 5.3 functionality regarding the formatting of error messages. Prior to PHP 5.3, PHP had two bundled example .ini files: php.ini-dist and php.ini-recommended. In both cases the setting html_errors was not changed from PHP’s default (on). docref_root was left to “” (empty string). | ||
+ | |||
+ | In PHP 5.3 two new .ini files were introduced: php.ini-development and php.ini-production. In the latter, html_errors was changed from PHP’s internal default to off. | ||
+ | |||
+ | This RFC discussed the reversal of that change, so that html_errors is “on” by default again. It also suggests to only show documentation links if the docref_root setting is explicitly set to an HTTP path. | ||
+ | |||
+ | ===== Rationale ===== | ||
+ | |||
+ | The html_errors setting is used in PHP to add HTML formatting around error messages in a web environment. It adds some mark-up and a link to the documentation as well. Some PHP extensions, such as Xdebug, enhance this mark-up to provide an outstanding development aid. | ||
+ | |||
+ | Most Linux distributions (if not all), force the use of php.ini-production, | ||
+ | |||
+ | A few examples of confused people: | ||
+ | |||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | There is also a PHP bug report at https:// | ||
+ | |||
+ | It is also a FAQ for Xdebug: http:// | ||
+ | |||
+ | In a development environment you would want this setting " | ||
+ | |||
+ | The second thing to change is the way how the links to the documentation are shown whenever html_errors is set to " | ||
+ | |||
+ | ===== Patch ===== | ||
+ | |||
+ | A patch is available at: http:// | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * 2011-07-26: initial version for discussion | ||
+ | * 2011-08-03: opened voting | ||
+ | * 2011-08-10: closed voting, RFC accepted 16 for and 0 against, patch committed | ||
+ | ===== Vote ===== | ||
+ | < | ||
+ | title=" | ||
+ | * yes | ||
+ | * no | ||
+ | </ |
rfc/error-formatting-for-developers.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1