note 118772 added to function.json-last-error-msg

From: Date: Wed, 03 Feb 2016 12:00:42 +0000
Subject: note 118772 added to function.json-last-error-msg
Groups: php.notes 
Request: Send a blank email to php-notes+get-204838@lists.php.net to get a copy of this message
Be aware that in PHP 5 an empty string dies not rise error and in PHP 7 it does (and it should). So content of $error depend on PHP Major version in this case: json_decode(''); $error = json_last_error_msg ---- Server IP: 72.52.91.14 Probable Submitter: 185.33.36.194 ---- Manual Page -- http://php.net/manual/en/function.json-last-error-msg.php Edit -- https://master.php.net/note/edit/118772 Del: integrated -- https://master.php.net/note/delete/118772/integrated Del: useless -- https://master.php.net/note/delete/118772/useless Del: bad code -- https://master.php.net/note/delete/118772/bad+code Del: spam -- https://master.php.net/note/delete/118772/spam Del: non-english -- https://master.php.net/note/delete/118772/non-english Del: in docs -- https://master.php.net/note/delete/118772/in+docs Del: other reasons-- https://master.php.net/note/delete/118772 Reject -- https://master.php.net/note/reject/118772 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204838) next »