# json_encode() bug

- Thread: https://externals.io/message/35066
- Original archive: https://news-web.php.net/php.internals/35066
- Started by Gaetano Giunta on 2008-02-01T09:19:32+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #35066 — Gaetano Giunta — 2008-02-01T09:19:32+00:00

URL: https://externals.io/message/35066#35066

Stanislav Malyshev wrote:
> ...
> The question is - should we have an error there? If 
> so, which one - E_WARNING, E_NOTICE? I'm for E_WARNING.

+1

Also please add at least a warning when errors are found in decoding process, so that it is somewhat feasible to distinguish a bad decode from json_decode('false')

Gaetano
