rfc:date.timezone_warning_removal

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
rfc:date.timezone_warning_removal [2015/01/27 00:27] – created bwoebirfc:date.timezone_warning_removal [2015/01/27 14:39] bwoebi
Line 3: Line 3:
   * Date: 2015-01-27   * Date: 2015-01-27
   * Author: Bob Weinand, bobwei9@hotmail.com   * Author: Bob Weinand, bobwei9@hotmail.com
-  * Status: Draft +  * Status: Under Discussion 
-  * First Published at: http://wiki.php.net/rfc/date.timezone_warning_removal+  * First Published at: https://wiki.php.net/rfc/date.timezone_warning_removal
  
 ===== Introduction ===== ===== Introduction =====
-Each time we use date() or generally functions which make use of the date.timezone ini setting, we get a warning. Even when only just trying to try something small with PHP cli involving dates, especially without a default php.ini installed, we can't just get nice output without an annoying warning.+Each time we use date() or generally functions which make use of the date.timezone ini setting, we get a warning. Even when only just trying to try something small with PHP cli involving dates, especially without a default php.ini installed, we can't just get nice output without an annoying warning. Sure, there exists "-ddate.timezone=UTC", but you usually forget to explicitly specify it and then are annoyed about it. 
 + 
 +Generally warning should be there to guide the user when developing. Just like superfluous warnings confuse him.
  
 Thus, I'd like to remove this warning in favor of a better user experience. Thus, I'd like to remove this warning in favor of a better user experience.
Line 19: Line 21:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-Targeting the next minor version.+Targeting the next minor version. (In this case PHP 7, being a major too.)
  
 ===== Unaffected PHP Functionality ===== ===== Unaffected PHP Functionality =====
-If the date.timezone ini setting isn't empty and invalid, a warning is still thrown. +If the date.timezone ini setting is set but invalid, a warning is still thrown.
 The default is and remains UTC. The default is and remains UTC.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
-Remove this warning: +Remove this warning (50%+1 vote)
-* Yes +  * Yes 
-* No+  * No
  
 ===== Patch ===== ===== Patch =====
Line 36: Line 37:
 ===== References ===== ===== References =====
 There are enough requests to remove this: There are enough requests to remove this:
-* https://bugs.php.net/bug.php?id=63339 +  * https://bugs.php.net/bug.php?id=63339 
-* https://bugs.php.net/bug.php?id=39142 +  * https://bugs.php.net/bug.php?id=39142 
-* https://bugs.php.net/bug.php?id=53473 +  * https://bugs.php.net/bug.php?id=53473 
-* https://bugs.php.net/bug.php?id=35481+  * https://bugs.php.net/bug.php?id=35481
rfc/date.timezone_warning_removal.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1