rfc:cli-strict

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
rfc:cli-strict [2011/07/05 15:08] – created aharveyrfc:cli-strict [2014/04/08 22:47] – Inactive levim
Line 1: Line 1:
- ====== Request for Comments: CLI option for "strict mode" ====== +====== Request for Comments: CLI options for strict and quiet modes ====== 
-  * Version: 1.0 +  * Version: 1.1 
-  * Date: 2011-07-05+  * Date: 2011-07-06
   * Author: Adam Harvey <aharvey@php.net>   * Author: Adam Harvey <aharvey@php.net>
-  * Status: Under Discussion+  * Status: Inactive
   * First Published at: http://wiki.php.net/rfc/cli-strict   * First Published at: http://wiki.php.net/rfc/cli-strict
  
 ===== Introduction ===== ===== Introduction =====
  
-This RFC seeks to add an option to the CLI SAPI that would enable the display of errors and the maximum level of error reporting.+This RFC seeks to add options to the CLI SAPI that would enable all and no error display.
  
-===== Proposed Option =====+===== Proposed Options =====
  
-The proposed option would be ''-W'', with ''-''''-strict'' as the long form option. No argument would be accepted; this is a purely boolean option.+The proposed option to display all errors would be ''-W'', with ''-''''-strict'' as the long form option. No argument would be accepted; this is a purely boolean option. 
 + 
 +Similarly, the option to hide all errors would be ''-Q'', with ''-''''-quiet'' as the long form option.
  
 ===== Why? ===== ===== Why? =====
Line 21: Line 23:
 ===== Why not? ===== ===== Why not? =====
  
-  * Uses up another letter for something that's equivalent to ''php -d display_errors=1 -d error_reporting=-1''.+  * Uses up another two letters for something that's equivalent to ''php -d display_errors=1 -d error_reporting=-1'' and ''php -d display_errors=0 -d error_reporting=0'', respectively.
  
-===== Patch =====+===== Patches =====
  
-  * Patch: http://www.adamharvey.name/patches/php-cli-strict.patch.txt+  * v1.1 patch (''-W'' and ''-Q''): http://www.adamharvey.name/patches/php-cli-strict-quiet.patch.txt 
 +  * v1.0 patch (''-W'' only): http://www.adamharvey.name/patches/php-cli-strict.patch.txt
  
 ===== Changelog ===== ===== Changelog =====
  
 +  * 2011-07-06: Add a ''-Q'' option in response to IRC and mailing list feedback.
   * 2011-07-05: Initial proposal.   * 2011-07-05: Initial proposal.
rfc/cli-strict.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1