note 124101 rejected from json.constants by cmb

From: Date: Fri, 09 Aug 2019 09:25:23 +0000
Subject: note 124101 rejected from json.constants by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211830@lists.php.net to get a copy of this message
Note Submitter: crow at biteme dot com ---- Apparently, defaults have changed as of PHP 7.3.6, as json_decode() now fails on malformed UTF8 where it used to default to accepting it. So, be aware that if your data isn't always 100% clean, you may need to add JSON_INVALID_UTF8_IGNORE or JSON_INVALID_UTF8_SUBSTITUTE to avoid getting an error instead of the array you were expecting.

« previous php.notes (#211830) next »