1--TEST-- 2Check libcurl config on windows 3--SKIPIF-- 4<?php 5if (!extension_loaded("curl")) { 6 die('skip - curl extension not available in this build'); 7} 8if(substr(PHP_OS, 0, 3) != 'WIN' ) 9 die("skip for windows only"); 10?> 11--FILE-- 12<?php 13 ob_start(); 14 phpinfo(); 15 $s = ob_get_contents(); 16 ob_end_clean(); 17 preg_match('/curl\n\n(.+)\n\n/siU', $s, $m); 18 19 echo $m[1], "\n"; 20 21?> 22DONE 23--EXPECTF-- 24cURL support => enabled 25cURL Information => %s 26Age => %d 27Features 28AsynchDNS => Yes 29CharConv => No 30Debug => No 31GSS-Negotiate => No 32IDN => Yes 33IPv6 => Yes 34krb4 => No 35Largefile => Yes 36libz => Yes 37NTLM => Yes 38NTLMWB => No 39SPNEGO => Yes 40SSL => Yes 41SSPI => Yes 42TLS-SRP => No 43Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp 44Host => %s-pc-win32 45SSL Version => OpenSSL/%s 46ZLib Version => %s 47libSSH Version => libssh2/%s 48DONE 49