On Fri, 10 May 2019 at 15:42, Bishop Bettini <bis...@php.net> wrote:
>
> Extant 7.3 code might be:

People would only write code like that if they hadn't read the manual
(or code documentation in their IDE) for json_last_error() which
clearly states 'Returns the last error (if any) occurred during the
last JSON encoding/decoding,'.

> I'd rather we just raise awareness in the form of documentation

If you have to carefully read the documentation for function, and not
taking enough care means that you're going to be surprised by the
result, then the function is probably poorly designed.

> We chose one, with its pros and cons.

As we've seen recently, people don't always consider the exact detail
implications that deeply. Seeing as people can also just make wrong
choices, I think this should be changed.

Seeing as you've objected, I'll raise an RFC to put it to a vote.

cheers
Dan
Ack

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to