Home
last modified time | relevance | path

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

1234567

/PHP-7.2/sapi/cli/
H A Dphp_http_parser.c324 if (ch == CR || ch == LF) in php_http_parser_execute()
396 if (ch < '1' || ch > '9') goto error; in php_http_parser_execute()
409 if (ch < '0' || ch > '9') goto error; in php_http_parser_execute()
444 if (ch < '0' || ch > '9') { in php_http_parser_execute()
457 if (ch < '0' || ch > '9') { in php_http_parser_execute()
502 if (ch == CR || ch == LF) in php_http_parser_execute()
592 if (ch == '/' || ch == '*') { in php_http_parser_execute()
622 } else if ('0' <= ch && ch <= '9') { in php_http_parser_execute()
644 if ((ch >= '0' && ch <= '9') || ch == '.' || ch == '-') break; in php_http_parser_execute()
669 if (ch >= '0' && ch <= '9') break; in php_http_parser_execute()
[all …]
/PHP-7.2/ext/curl/
H A Dinterface.c239 ZEND_ASSERT(ch && ch->handlers); in _php_curl_verify_handlers()
264 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
278 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
292 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1895 return ch; in alloc_curl_handle()
1974 php_curl *ch; in PHP_FUNCTION() local
1991 ch->cp = cp; in PHP_FUNCTION()
2802 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2922 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt()
2981 php_curl *ch; in PHP_FUNCTION() local
[all …]
/PHP-7.2/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()
413 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in ValidateFormat()
[all …]
H A Dbase64.c133 int ch, i = 0, j = 0, padding = 0; in php_base64_decode_ex() local
140 ch = *current++; in php_base64_decode_ex()
141 if (ch == base64_pad) { in php_base64_decode_ex()
146 ch = base64_reverse_table[ch]; in php_base64_decode_ex()
149 if (ch < 0) { in php_base64_decode_ex()
154 if (ch == -1) { in php_base64_decode_ex()
158 if (ch == -2 || padding) { in php_base64_decode_ex()
165 ZSTR_VAL(result)[j] = ch << 2; in php_base64_decode_ex()
168 ZSTR_VAL(result)[j++] |= ch >> 4; in php_base64_decode_ex()
172 ZSTR_VAL(result)[j++] |= ch >>2; in php_base64_decode_ex()
[all …]
/PHP-7.2/ext/curl/tests/
H A Dcurl_file_upload.phpt19 var_dump(curl_exec($ch));
24 $ch = curl_init();
26 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
38 var_dump(curl_exec($ch));
44 var_dump(curl_exec($ch));
46 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0);
49 var_dump(curl_exec($ch));
51 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
54 var_dump(curl_exec($ch));
59 var_dump(curl_exec($ch));
[all …]
H A Dbug27023.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 …]
H A Dcurl_basic_006.phpt10 /* Prototype : bool curl_setopt(resource ch, int option, mixed value)
20 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n";
23 $ch = curl_init();
26 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
27 curl_setopt($ch, CURLOPT_WRITEFUNCTION, function ($ch, $data) {
32 curl_exec($ch);
33 curl_close($ch);
39 *** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
H A Dbug67643.phpt9 $ch = curl_init();
10 …curl_setopt($ch, CURLOPT_URL, 'file://'. dirname(__FILE__) . DIRECTORY_SEPARATOR .'curl_testdata1.…
11 curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
14 curl_multi_add_handle($mh, $ch);
21 $results = curl_multi_getcontent($ch);
23 curl_multi_remove_handle($mh, $ch);
H A Dcurl_copy_handle_basic_005.phpt17 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
21 curl_setopt($ch, CURLOPT_POST, 1);
22 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe");
23 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
26 $curl_content = curl_exec($ch);
27 $copy = curl_copy_handle($ch);
28 curl_close($ch);
/PHP-7.2/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-7.2/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 49 milliseconds

1234567