There's been much brouhaha about the Dread Pirate Roberts getting partially nabbed for using Stack Overflow. What struck me most about his question is he asked it only because PHP was missing a numeric constant, CURLPROXY_SOCKS5_HOSTNAME, which it should have had. Sure enough, there's an unaddressed bug (as of PHP 5.5.4) about the missing constant with an attached patch:
Developer: email@example.com --- interface.c 2013-08-16 00:42:04.000000000 +0400 +++ interface_my.c 2013-08-18 03:12:28.948548811 +0400 @@ -827,6 +827,8 @@ REGISTER_CURL_CONSTANT(CURLPROXY_HTTP); REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4); REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5); + REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS4A); + REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5_HOSTNAME); /* Curl Share constants */ REGISTER_CURL_CONSTANT(CURLSHOPT_NONE);
For want of a 2-line patch, a $1.2B empire was lost.