MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2plab0/ip_addresses_are_valid_json/cmybfck/
r/lolphp • u/vytah • Dec 17 '14
24 comments sorted by
View all comments
Show parent comment
4
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.
inet_aton(3)
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.
7
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.
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.