note 114502 deleted from function.json-decode by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 15:00:49 +0000 |
| Subject: | note 114502 deleted from function.json-decode by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215427@lists.php.net to get a copy of this message | ||
Note Submitter: gabriel dot bondaz at gmail dot com
----
Get a mistery case:
if I try to json_decode this string: "[0-9]{5}", i get this results:
<?php
var_dump(json_decode("[0-9],{5}",));
?>
array(1) { [0] => int(0) }
But I expected to get an error, cause this is not a valid JSON !