/PHP-7.4/ext/curl/tests/ |
H A D | bug52202.phpt | 5 if (!extension_loaded('curl')) exit("skip curl extension not loaded"); 9 $curl = curl_init("http://www.google.com"); 10 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 11 curl_setopt($curl, CURLOPT_PRIVATE, "123"); 12 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1); 13 curl_setopt($curl, CURLOPT_TIMEOUT, 1); 14 curl_exec($curl); 16 var_dump(curl_getinfo($curl, CURLINFO_PRIVATE));
|
H A D | bug77535.phpt | 11 exit("skip: test may crash with curl < 7.61.0"); 19 private $curl; 29 $this->curl = curl_init(); 30 curl_setopt($this->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); 32 curl_setopt($this->curl, CURLOPT_HEADER, false); 33 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false); 34 curl_setopt($this->curl, CURLOPT_FAILONERROR, false); 36 curl_setopt($this->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); 37 curl_setopt($this->curl, CURLOPT_HEADERFUNCTION, function ($ch, $data) { 40 curl_setopt($this->curl, CURLOPT_WRITEFUNCTION, function ($ch, $data) { [all …]
|
H A D | bug62839.phpt | 4 <?php if (!extension_loaded("curl")) print "skip"; 8 $curl = curl_init(); 11 curl_setopt($curl, CURLOPT_FILE, $fd); 13 curl_copy_handle($curl);
|
H A D | bug48514.phpt | 6 if (!extension_loaded('curl')) { 7 exit("skip curl extension not loaded"); 24 resource(%d) of type (curl) 25 string(4) "curl"
|
H A D | curl_multi_setopt_basic001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 10 exit("skip: test works only with curl >= 7.16.0"); 24 Warning: curl_multi_setopt(): Invalid curl multi configuration option in %s on line %d
|
H A D | bug65646_open_basedir_old.phpt | 2 …-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir enabled; curl < 7.19.4 7 if (!extension_loaded('curl')) exit("skip curl extension not loaded"); 8 if (version_compare(curl_version()['version'], '7.19.4', '>=')) exit("skip curl version is too new"…
|
H A D | curl_write_file.phpt | 2 Test curl option CURLOPT_FILE 7 Writes the value 'test' to a temporary file. Use curl to access this file and store the output in a… 9 <?php if (!extension_loaded("curl")) print "skip"; ?> 13 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); 14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_basic_014.phpt | 6 <?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?> 14 resource(%d) of type (curl)
|
H A D | curl_write_callback.phpt | 2 Test curl option CURLOPT_WRITEFUNCTION 7 Writes the value 'test' to a temporary file. Use curl to access this file, passing the output into … 9 <?php if (!extension_loaded("curl")) print "skip"; ?> 19 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_write_return.phpt | 2 Test curl option CURLOPT_RETURNTRANSFER 7 Writes the value 'test' to a temporary file. Use curl to access this file and have it return the co… 10 <?php if (!extension_loaded("curl")) print "skip"; ?> 14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | curl_write_stdout.phpt | 2 Test curl option CURLOPT_FILE with STDOUT handle 7 Writes the value 'test' to a temporary file. Use curl to access this file and store the output in a… 9 <?php if (!extension_loaded("curl")) print "skip"; ?> 13 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
|
H A D | bug72202.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 30 resource(%d) of type (curl) 31 resource(%d) of type (curl)
|
H A D | curl_multi_strerror_001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 10 exit("skip: test works only with curl >= 7.12.0");
|
H A D | curl_share_setopt_basic001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 22 Warning: curl_share_setopt(): Invalid curl share configuration option in %s on line %d
|
H A D | curl_strerror_001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 10 exit("skip: test works only with curl >= 7.12.0");
|
H A D | bug65646_open_basedir_new.phpt | 2 …enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir enabled; curl >= 7.19.4 7 if (!extension_loaded('curl')) exit("skip curl extension not loaded"); 8 if (version_compare(curl_version()['version'], '7.19.4', '<')) exit("skip curl version is too old");
|
H A D | curl_multi_errno_strerror_001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 10 exit("skip: test works only with curl >= 7.15.4");
|
H A D | curl_share_errno_strerror_001.phpt | 5 if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 10 exit("skip: test works only with curl >= 7.12.0");
|
H A D | curl_basic_024.phpt | 2 Test curl_getinfo() function with CURLINFO_* from curl >= 7.52.0 4 <?php if (!extension_loaded("curl")) print "skip"; 7 exit("skip: test works only with curl >= 7.52.0");
|
H A D | curl_escape.phpt | 5 if (!extension_loaded("curl")) exit("skip curl extension not loaded"); 9 exit("skip: tests works only on curl >= 7.21.2");
|
H A D | curl_multi_init_basic.phpt | 7 <?php if (!extension_loaded("curl")) print "skip"; ?> 12 * Source code : ext/curl/multi.c 13 * Test documentation: http://wiki.php.net/qa/temp/ext/curl
|
H A D | skipif.inc | 2 if (!extension_loaded("curl")) exit("skip curl extension not loaded");
|
/PHP-7.4/ext/curl/ |
H A D | config.w32 | 3 ARG_WITH("curl", "cURL support", "no"); 7 var f = PHP_PHP_BUILD + "/include/curl/curlver.h"; 16 if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) && 17 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") && 18 SETUP_OPENSSL("curl", PHP_CURL) > 0 && 19 CHECK_LIB("winmm.lib", "curl", PHP_CURL) && 20 CHECK_LIB("wldap32.lib", "curl", PHP_CURL) && 25 CHECK_LIB("normaliz.lib", "curl", PHP_CURL) && 26 CHECK_LIB("libssh2.lib", "curl", PHP_CURL) && 27 CHECK_LIB("nghttp2.lib", "curl", PHP_CURL)) [all …]
|
H A D | config.m4 | 1 PHP_ARG_WITH([curl], 3 [AS_HELP_STRING([--with-curl], 32 #include <curl/curl.h> 75 PHP_CHECK_LIBRARY(curl,curl_easy_perform, 84 PHP_NEW_EXTENSION(curl, interface.c multi.c share.c curl_file.c, $ext_shared)
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | bug53241.phpt | 6 * curl to test this */ 7 if (!extension_loaded("curl")) exit("skip curl extension not loaded");
|