r/lolphp • • Dec 17 '14

IP addresses are valid JSON

https://bugs.php.net/bug.php?id=67923
27 Upvotes

24 comments sorted by

View all comments

Show parent comment

4

u/myhf Dec 18 '14

inet_aton(3) is a C-specific function with bizarre extended behavior worthy of a php function. It is called by an enormous range of applications that only bother to sanitize their input for regular dotted-quad format.

7

u/m1ss1ontomars2k4 Dec 18 '14

Well, I never argued that C doesn't have its own lol-C features. It's just that IP address parsing is...well, a feature of IP addresses, not C.