X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=scripts%2Fgen_curlinfo.php;h=54137ba2c9e3b528aa1f1a5b09d8fe0b59a22cb1;hb=c52642ccff4fe2887c9d5581816a7cae55766df4;hp=a07af2281c2f5485497814a9754e4ff3a9459d06;hpb=dd07cdeb2ed9752a82c9d052b42af2d639a785fd;p=m6w6%2Fext-http diff --git a/scripts/gen_curlinfo.php b/scripts/gen_curlinfo.php index a07af22..54137ba 100644 --- a/scripts/gen_curlinfo.php +++ b/scripts/gen_curlinfo.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php '7,14,1' + 'COOKIELIST' => 'HTTP_CURL_VERSION(7,14,1)', + 'PRIMARY_IP' => 'HTTP_CURL_VERSION(7,19,0)', + 'APPCONNECT_TIME' => 'HTTP_CURL_VERSION(7,19,0)', + 'REDIRECT_URL' => 'HTTP_CURL_VERSION(7,18,2)', + 'CERTINFO' => 'HTTP_CURL_VERSION(7,19,1) && defined(HTTP_HAVE_OPENSSL)' ); $exclude = array( 'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH' @@ -76,7 +81,7 @@ ob_start(); foreach ($infos as $info) { list(, $full, $short, $type) = $info; if (in_array($short, $exclude)) continue; - if (isset($ifdefs[$short])) printf("#if HTTP_CURL_VERSION(%s)\n", $ifdefs[$short]); + if (isset($ifdefs[$short])) printf("#if %s\n", $ifdefs[$short]); printf($templates[$type], $full, strtolower((isset($translate[$short])) ? $translate[$short] : $short)); if (isset($ifdefs[$short])) printf("#endif\n"); }