X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=gen_curlinfo.php;h=076a10d10f86bd34e1a354ea5a34b028bb9dc6ed;hp=726fd48250c84dac3adc3d413584bef47253f720;hb=refs%2Fheads%2Fv2.3.x;hpb=4957436be59f65fae9cdbaec1dc865acc680862f diff --git a/gen_curlinfo.php b/gen_curlinfo.php old mode 100644 new mode 100755 index 726fd48..076a10d --- a/gen_curlinfo.php +++ b/gen_curlinfo.php @@ -40,8 +40,9 @@ $ifdefs = array( 'LOCAL_IP' => 'PHP_HTTP_CURL_VERSION(7,21,0)', ); $exclude = array( - 'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH', 'CERTINFO', - 'RTSP_SESSION_ID', 'RTSP_CLIENT_CSEQ', 'RTSP_SERVER_CSEQ', 'RTSP_CSEQ_RECV' + 'PRIVATE', 'LASTSOCKET', 'FTP_ENTRY_PATH', 'CERTINFO', 'TLS_SESSION', + 'RTSP_SESSION_ID', 'RTSP_CLIENT_CSEQ', 'RTSP_SERVER_CSEQ', 'RTSP_CSEQ_RECV', + 'COOKIELIST' ); $translate = array( @@ -91,8 +92,8 @@ foreach ($infos as $info) { if (isset($ifdefs[$short])) printf("#endif\n"); } -file_put_contents("php_http_curl.c", +file_put_contents("php_http_client_curl.c", preg_replace('/(\/\* BEGIN::CURLINFO \*\/\n).*(\n\s*\/\* END::CURLINFO \*\/)/s', '$1'. ob_get_contents() .'$2', - file_get_contents("php_http_curl.c"))); + file_get_contents("php_http_client_curl.c"))); ?>