note 129099 added to function.json-validate
| From: | icarosnet at gmail dot com | Date: | Mon, 11 Dec 2023 21:49:51 +0000 |
| Subject: | note 129099 added to function.json-validate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221053@lists.php.net to get a copy of this message | ||
I still don't understand why a method in PHP is given two responsibilities instead of just
one...
If json_validate is created, why should json_decode() do implicit validation... it doesn't make
sense...
If you want to have a method with two responsibilities it should be like this:
json_validate, json_decode, json_validate_and_decode "new method"
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 190.34.151.106)
----
Manual Page -- https://php.net/manual/en/function.json-validate.php
Edit -- https://main.php.net/note/edit/129099
Del: integrated -- https://main.php.net/note/delete/129099/integrated
Del: useless -- https://main.php.net/note/delete/129099/useless
Del: bad code -- https://main.php.net/note/delete/129099/bad+code
Del: spam -- https://main.php.net/note/delete/129099/spam
Del: non-english -- https://main.php.net/note/delete/129099/non-english
Del: in docs -- https://main.php.net/note/delete/129099/in+docs
Del: other reasons-- https://main.php.net/note/delete/129099
Reject -- https://main.php.net/note/reject/129099
Search -- https://main.php.net/manage/user-notes.php