rfc:json_encode_decode_errors

Differences

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

Link to this comparison view

Next revision
Previous revision
rfc:json_encode_decode_errors [2017/07/28 10:55] – Created new RFC for JSON errors duncan3dcrfc:json_encode_decode_errors [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== PHP RFC: Raise warnings for json_encode() and json_decode() issues ====== ====== PHP RFC: Raise warnings for json_encode() and json_decode() issues ======
-  * Version: 0.1+  * Version: 0.2
   * Date: 2017-07-28   * Date: 2017-07-28
   * Author: Craig Duncan <php@duncanc.co.uk>   * Author: Craig Duncan <php@duncanc.co.uk>
   * Proposed version: PHP 7.3   * Proposed version: PHP 7.3
-  * Status: Under Discussion+  * Status: Withdrawn
  
 ===== Introduction ===== ===== Introduction =====
Line 15: Line 15:
  
 This RFC proposes changing ''json_encode()'' and ''json_decode()'' to raise E_WARNING whenever a failure occurs. This RFC proposes changing ''json_encode()'' and ''json_decode()'' to raise E_WARNING whenever a failure occurs.
 +
 +===== Concerns =====
 +
 +The functionality of ''json_last_error()'' and ''json_last_error_msg()'' are unaffected and they can still be used in exactly the same way they are today.
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 41: Line 45:
 Initial discussion that led to this RFC's creation: Initial discussion that led to this RFC's creation:
 https://externals.io/message/100061 https://externals.io/message/100061
 +
 +Discussion thread:
 +https://externals.io/message/100071
  
rfc/json_encode_decode_errors.1501239320.txt.gz · Last modified: 2017/09/22 13:28 (external edit)