Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 168) sorted by relevance

1234567

/PHP-5.5/ext/curl/
H A Dinterface.c227 if (!ch || !ch->handlers) { in _php_curl_verify_handlers()
243 if (ch->handlers->read && ch->handlers->read->stream) { in _php_curl_verify_handlers()
254 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
268 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
271 if (ch->handlers->write && ch->handlers->write->stream) { in _php_curl_verify_handlers()
282 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1826 memset(&(*ch)->err, 0, sizeof((*ch)->err)); in alloc_curl_handle()
1971 ch->cp = cp; in PHP_FUNCTION()
2739 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2864 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt()
[all …]
H A Dmulti.c78 php_curl *ch; in PHP_FUNCTION() local
88 _php_curl_cleanup_handle(ch); in PHP_FUNCTION()
103 php_curl *ch; in _php_curl_multi_cleanup_list() local
111 if (!ch) { in _php_curl_multi_cleanup_list()
135 php_curl *ch; in PHP_FUNCTION() local
214 php_curl *ch; in PHP_FUNCTION() local
239 php_curl *ch; in PHP_FUNCTION() local
252 RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); in PHP_FUNCTION()
291 php_curl *ch; in PHP_FUNCTION() local
298 if (ch->cp == tmp_msg->easy_handle) { in PHP_FUNCTION()
[all …]
/PHP-5.5/sapi/cli/
H A Dphp_http_parser.c390 if (ch == CR || ch == LF) in php_http_parser_execute()
462 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
475 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
510 if (ch < '0' || ch > '9') { in php_http_parser_execute()
523 if (ch < '0' || ch > '9') { in php_http_parser_execute()
568 if (ch == CR || ch == LF) in php_http_parser_execute()
648 if (ch == '/' || ch == '*') { in php_http_parser_execute()
678 } else if ('0' <= ch && ch <= '9') { in php_http_parser_execute()
700 if ((ch >= '0' && ch <= '9') || ch == '.' || ch == '-') break; in php_http_parser_execute()
725 if (ch >= '0' && ch <= '9') break; in php_http_parser_execute()
[all …]
/PHP-5.5/ext/standard/
H A Dscanf.c149 ch = format; in BuildCharSet()
152 ch = ++format; in BuildCharSet()
160 ch = end++; in BuildCharSet()
167 ch = end++; in BuildCharSet()
182 start = *ch; in BuildCharSet()
183 if (*ch == ']' || *ch == '-') { in BuildCharSet()
185 ch = format++; in BuildCharSet()
193 start = *ch; in BuildCharSet()
221 ch = format++; in BuildCharSet()
414 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in ValidateFormat()
[all …]
H A Dbase64.c146 int ch, i = 0, j = 0, k; in php_base64_decode_ex() local
154 if (ch == base64_pad) { in php_base64_decode_ex()
170 ch = base64_reverse_table[ch]; in php_base64_decode_ex()
173 } else if (ch == -2) { in php_base64_decode_ex()
180 result[j] = ch << 2; in php_base64_decode_ex()
183 result[j++] |= ch >> 4; in php_base64_decode_ex()
184 result[j] = (ch & 0x0f) << 4; in php_base64_decode_ex()
187 result[j++] |= ch >>2; in php_base64_decode_ex()
188 result[j] = (ch & 0x03) << 6; in php_base64_decode_ex()
191 result[j++] |= ch; in php_base64_decode_ex()
[all …]
/PHP-5.5/ext/openssl/tests/
H A Dsni_001.phpt14 * sni.velox.ch uses 3 certificates :
15 * - CN=alice.sni.velox.ch (sent in response to server_name = alice.sni.velox.ch or not set)
16 * - CN=bob.sni.velox.ch (sent in response to server_name = bob.sni.velox.ch)
17 …* - CN=*.sni.velox.ch (sent in response to server_name = mallory.sni.velox.ch or *.sni.velox.ch or…
154 %unicode|string%(16) "bob.sni.velox.ch"
156 %unicode|string%(16) "bob.sni.velox.ch"
158 %unicode|string%(16) "bob.sni.velox.ch"
162 %unicode|string%(16) "bob.sni.velox.ch"
164 %unicode|string%(14) "*.sni.velox.ch"
166 %unicode|string%(16) "bob.sni.velox.ch"
[all …]
/PHP-5.5/ext/curl/tests/
H A Dcurl_file_upload.phpt18 var_dump(curl_exec($ch));
23 $ch = curl_init();
25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
27 testcurl($ch, __DIR__ . '/curl_testdata1.txt');
37 var_dump(curl_exec($ch));
43 var_dump(curl_exec($ch));
47 var_dump(curl_exec($ch));
49 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
52 var_dump(curl_exec($ch));
57 var_dump(curl_exec($ch));
[all …]
H A Dbug27023.phpt14 $ch = curl_init();
15 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0);
17 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
20 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
21 var_dump(curl_exec($ch));
24 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
25 var_dump(curl_exec($ch));
29 var_dump(curl_exec($ch));
33 var_dump(curl_exec($ch));
37 var_dump(curl_exec($ch));
[all …]
H A Dbug27023_2.phpt12 $ch = curl_init();
13 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1);
15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
20 var_dump(curl_exec($ch));
24 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
25 var_dump(curl_exec($ch));
29 curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
30 var_dump(curl_exec($ch));
35 var_dump(curl_exec($ch));
[all …]
H A Dcurl_setopt_basic004.phpt18 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
21 curl_setopt($ch, CURLOPT_URL, $url);
23 $curl_content = curl_exec($ch);
24 curl_close($ch);
30 $ch = curl_init();
32 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
33 curl_setopt($ch, CURLOPT_URL, $url);
35 $curl_content = curl_exec($ch);
37 curl_close($ch);
H A Dbug66109.phpt9 $ch = curl_init();
10 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=method");
11 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
13 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
14 var_dump(curl_exec($ch));
16 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, NULL);
17 var_dump(curl_exec($ch));
19 curl_close($ch);
H A Dcurl_setopt_basic003.phpt18 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_HTTPHEADER, 1);
22 $curl_content = curl_exec($ch);
23 curl_close($ch);
27 $ch = curl_init();
30 curl_setopt($ch, CURLOPT_HTTPHEADER, array());
31 curl_setopt($ch, CURLOPT_URL, $host);
33 $curl_content = curl_exec($ch);
35 curl_close($ch);
H A Dcurl_CURLOPT_READDATA.phpt22 $ch = curl_init($url);
23 curl_setopt($ch, CURLOPT_URL, $url);
24 curl_setopt($ch, CURLOPT_POST, true);
25 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
26 curl_setopt($ch, CURLOPT_READDATA, fopen($tempname, 'rb'));
27 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:', "Content-Length: {$datalen}"));
29 if (false === $response = curl_exec($ch)) {
30 echo 'Error #' . curl_errno($ch) . ': ' . curl_error($ch);
35 curl_close($ch);
H A Dbug54995.phpt15 $ch = curl_init();
16 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php");
17 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE) == curl_getinfo($ch, CURLINFO_RESPONSE_CODE));
21 curl_exec($ch);
22 curl_close($ch);
H A Dcurl_copy_handle_basic_008.phpt11 $ch = curl_init($url);
13 curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
14 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
15 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { });
16 $ch2 = curl_copy_handle($ch);
17 echo curl_exec($ch), PHP_EOL;
18 unset($ch);
H A Dcurl_reset.phpt19 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_FILE, $testfile_fp);
21 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
22 curl_exec($ch);
24 curl_reset($ch);
25 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
26 curl_exec($ch);
28 curl_close($ch);
H A Dcurl_ftp_pasv.phpt21 $ch = curl_init ();
24 // curl_setopt ( $ch , CURLOPT_VERBOSE, 1 );
38 curl_setopt ( $ch , CURLOPT_URL, $url );
39 curl_setopt ( $ch , CURLOPT_TRANSFERTEXT, 1 );
42 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 );
43 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 );
46 curl_setopt ( $ch , CURLOPT_INFILE, $fp );
48 curl_setopt ( $ch , CURLOPT_PUT, 1 );
49 curl_setopt ( $ch , CURLOPT_UPLOAD, 1 );
51 $result = curl_exec ( $ch );
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dchunk_split_variation11.phpt22 sPeci@! ch@r$ :) & numbers 222.This is \k wrong escape char.
35 ")speci@! ch@r$(", //String with special chars
51 sPeci@! ch@r$ :) & numbers 222.This is \k wrong escape char."
55 s Peci@! ch@r$ :) & number s 222. This i s \k w rong e scape char. "
59 saPeci@!a ch@r$a :) & anumberas 222.aThis ias \k warong eascape achar.a"
63 sENDINGPeci@!ENDING ch@r$ENDING :) & ENDINGnumberENDINGs 222.ENDINGThis iENDINGs \k wENDINGrong eEN…
77 ch@r$
90 s123Peci@!123 ch@r$123 :) & 123number123s 222.123This i123s \k w123rong e123scape 123char.123"
92 string(398) "This i)speci@! ch@r$(s here)speci@! ch@r$(doc st)speci@! ch@r$(ring w)speci@! ch@r$(it…
93 .)speci@! ch@r$(It als)speci@! ch@r$(o cont)speci@! ch@r$(ains
[all …]
H A Dchunk_split_variation9.phpt41 ")speci@! ch@r$("
57 string(66) "This i s to t est ch unk_sp lit() with v arious endin g stri ng "
63 string(106) "This i@#$%^s to t@#$%^est ch@#$%^unk_sp@#$%^lit() @#$%^with v@#$%^arious@#$%^ endin@#$…
65 string(66) "This i s to t est ch unk_sp lit() with v arious endin g stri ng "
69 est ch
81 est ch
93 est ch
103 string(66) "This i�s to t�est ch�unk_sp�lit() �with v�arious� endin�g stri�ng�"
107 string(106) "This i(MSG)s to t(MSG)est ch(MSG)unk_sp(MSG)lit() (MSG)with v(MSG)arious(MSG) endin(MS…
111 string(196) "This i)numbers 1234(s to t)numbers 1234(est ch)numbers 1234(unk_sp)numbers 1234(lit() …
[all …]
/PHP-5.5/scripts/dev/generate-phpt/tests/
H A DgtIfClassHasMethodTest.php12 $ch = new gtIfClassHasMethod();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIfClassHasMethod();
21 $this->assertFalse($ch->check($clo));
28 $ch = new gtIfClassHasMethod();
29 $this->assertTrue($ch->check($clo));
36 $ch = new gtIfClassHasMethod();
37 $this->assertEquals($ch->getMessage(), gtText::get('methodNotSpecified'));
H A DgtIsSpecifiedFunctionOrMethodTest.php12 $ch = new gtIsSpecifiedFunctionOrMethod();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIsSpecifiedFunctionOrMethod();
21 $this->assertTrue($ch->check($clo));
28 $ch = new gtIsSpecifiedFunctionOrMethod();
29 $this->assertFalse($ch->check($clo));
37 $ch = new gtIsSpecifiedFunctionOrMethod();
38 $this->assertEquals($ch->getMessage(), gtText::get('functionOrMethodNotSpecified'));
H A DgtIsValidClassTest.php12 $ch = new gtIsValidClass();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIsValidClass();
21 $this->assertFalse($ch->check($clo));
28 $ch = new gtIsValidClass();
29 $this->assertTrue($ch->check($clo));
36 $ch = new gtIsvalidClass();
37 $this->assertEquals($ch->getMessage(), gtText::get('unknownClass'));
H A DgtIsValidFunctionTest.php12 $ch = new gtIsValidFunction();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIsValidFunction();
21 $this->assertFalse($ch->check($clo));
28 $ch = new gtIsValidFunction();
29 $this->assertTrue($ch->check($clo));
36 $ch = new gtIsvalidFunction();
37 $this->assertEquals($ch->getMessage(), gtText::get('unknownFunction'));
H A DgtIsValidMethodTest.php12 $ch = new gtIsValidMethod();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIsValidMethod();
21 $this->assertFalse($ch->check($clo));
28 $ch = new gtIsValidMethod();
29 $this->assertTrue($ch->check($clo));
36 $ch = new gtIsvalidMethod();
37 $this->assertEquals($ch->getMessage(), gtText::get('unknownMethod'));
H A DgtIsSpecifiedTestTypeTest.php12 $ch = new gtIsSpecifiedTestType();
13 $this->assertTrue($ch->check($clo));
20 $ch = new gtIsSpecifiedTestType();
21 $this->assertFalse($ch->check($clo));
28 $ch = new gtIsSpecifiedtestType();
29 $this->assertEquals($ch->getMessage(), gtText::get('testTypeNotSpecified'));

Completed in 99 milliseconds

1234567