| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2019-09-09 10:15 UTC] nikic@php.net
 
-Status: Open
+Status: Not a bug
  [2019-09-09 10:15 UTC] nikic@php.net
  [2019-09-09 10:18 UTC] nick dot kdevil at gmail dot com
  [2019-09-09 10:26 UTC] nick dot kdevil at gmail dot com
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Description: ------------ I was under the impression, that if i have a json_last_error, that if the flag JSON_THROW_ON_ERROR is set, i will get an exception. In the example below json_last_error would return 4, but no exception is thrown. Test script: --------------- json_decode('test',true,JSON_THROW_ON_ERROR); Expected result: ---------------- The appropriate exception is thrown Actual result: -------------- NULL is being returned