From 4eacfeed49b33c65b45794c5ff133ca043bea3b5 Mon Sep 17 00:00:00 2001 From: Neal Poole Date: Wed, 23 Nov 2016 13:08:34 -0800 Subject: [PATCH] Add CURLPROTO_ constants to Hack Summary: Ran the following command: cat hphp/runtime/ext/curl/ext_curl.cpp | grep HHVM_RC | cut -d '(' -f 2 | cut -d ')' -f 1 | cut -d ',' -f 1 | sort | xargs -n 1 -I {} sh -c 'grep -q {} hphp/hack/hhi/stdlib/builtins_curl.hhi || echo "const int {} = 0;"' Then used grep to filter Reviewed By: Orvid Differential Revision: D4217326 fbshipit-source-id: e09b36b146e9187ac4bf24a84a75944a9cd63bdc --- hphp/hack/hhi/stdlib/builtins_curl.hhi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/hphp/hack/hhi/stdlib/builtins_curl.hhi b/hphp/hack/hhi/stdlib/builtins_curl.hhi index 4455750227e..55d702c10be 100644 --- a/hphp/hack/hhi/stdlib/builtins_curl.hhi +++ b/hphp/hack/hhi/stdlib/builtins_curl.hhi @@ -352,6 +352,36 @@ const int CURL_VERSION_KERBEROS4 = 0; const int CURL_VERSION_LIBZ = 0; const int CURL_VERSION_SSL = 0; +const int CURLPROTO_ALL = 0; +const int CURLPROTO_DICT = 0; +const int CURLPROTO_FILE = 0; +const int CURLPROTO_FTP = 0; +const int CURLPROTO_FTPS = 0; +const int CURLPROTO_GOPHER = 0; +const int CURLPROTO_HTTP = 0; +const int CURLPROTO_HTTPS = 0; +const int CURLPROTO_IMAP = 0; +const int CURLPROTO_IMAPS = 0; +const int CURLPROTO_LDAP = 0; +const int CURLPROTO_LDAPS = 0; +const int CURLPROTO_POP3 = 0; +const int CURLPROTO_POP3S = 0; +const int CURLPROTO_RTMP = 0; +const int CURLPROTO_RTMPE = 0; +const int CURLPROTO_RTMPS = 0; +const int CURLPROTO_RTMPT = 0; +const int CURLPROTO_RTMPTE = 0; +const int CURLPROTO_RTMPTS = 0; +const int CURLPROTO_RTSP = 0; +const int CURLPROTO_SCP = 0; +const int CURLPROTO_SFTP = 0; +const int CURLPROTO_SMB = 0; +const int CURLPROTO_SMBS = 0; +const int CURLPROTO_SMTP = 0; +const int CURLPROTO_SMTPS = 0; +const int CURLPROTO_TELNET = 0; +const int CURLPROTO_TFTP = 0; + const int CURLPROXY_HTTP = 0; const int CURLPROXY_SOCKS5 = 0; -- 2.11.4.GIT