com php-src: Added curl config test for windows: ext/curl/tests /check_win_config.phpt
| From: | Anatol Belski | Date: | Wed, 17 Apr 2013 12:25:45 +0000 |
| Subject: | com php-src: Added curl config test for windows: ext/curl/tests /check_win_config.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71940@lists.php.net to get a copy of this message | ||
Commit: 2d9cbf720d55c7dde8ff96a099cff60c3c6995cd
Author: Anatol Belski <ab@php.net> Wed, 17 Apr 2013 14:25:45 +0200
Parents: c76cdb806753b57d13d598c7752598f94254f120
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d9cbf720d55c7dde8ff96a099cff60c3c6995cd
Log:
Added curl config test for windows
Changed paths:
A ext/curl/tests/check_win_config.phpt
Diff:
diff --git a/ext/curl/tests/check_win_config.phpt b/ext/curl/tests/check_win_config.phpt
new file mode 100644
index 0000000..103f1cf
--- /dev/null
+++ b/ext/curl/tests/check_win_config.phpt
@@ -0,0 +1,48 @@
+--TEST--
+Check libcurl config on windows
+--SKIPIF--
+<?php
+if (!extension_loaded("curl")) {
+ die('skip - curl extension not available in this build');
+}
+if(substr(PHP_OS, 0, 3) != 'WIN' )
+ die("skip for windows only");
+?>
+--FILE--
+<?php
+ ob_start();
+ phpinfo();
+ $s = ob_get_contents();
+ ob_end_clean();
+ preg_match('/curl\n\n(.+)\n\n/siU', $s, $m);
+
+ echo $m[1], "\n";
+
+?>
+DONE
+--EXPECTF--
+cURL support => enabled
+cURL Information => %s
+Age => %d
+Features
+AsynchDNS => Yes
+CharConv => No
+Debug => No
+GSS-Negotiate => Yes
+IDN => Yes
+IPv6 => Yes
+krb4 => No
+Largefile => Yes
+libz => Yes
+NTLM => Yes
+NTLMWB => No
+SPNEGO => Yes
+SSL => Yes
+SSPI => Yes
+TLS-SRP => No
+Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp,
scp, sftp, smtp, smtps, telnet, tftp
+Host => %s-pc-win32
+SSL Version => OpenSSL/%s
+ZLib Version => %s
+libSSH Version => libssh2/%s
+DONE