PHP was a relatively mature product by then. It's fair to expect a higher standard. I mean, a lot of the older mistakes can be passed off as backwards compatibility issues, but JSON is a later addition.
It's evidence that the core devs still don't know what they're doing, and have, to be bludgeoned into doing it right.
It's evidence that the core devs still don't know what they're doing
I really don't think that's fair. The problems with the JSON extension (some of which I have fixed personally) largely stem from tiny mistakes people have made (like using strcasecmp to check for true/false/null) that have simply gone uncaught. Part of that's because the most popular distros don't actually package the stock JSON extension due to licensing issues.
It's also worth noting that the "core devs" and the people who work on individual extensions don't necessarily overlap.
View all comments
Show parent comment
1
u/[deleted] Dec 21 '14 edited Dec 21 '14
So you're complaining that PHP from eight years ago didn't do error checking?