Home
last modified time | relevance | path

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

1234567

/PHP-7.4/ext/ffi/
H A Dffi_parser.c1099 if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f')) { in get_skip_sym()
1268 …if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || ch == '_' || (ch >= 'a' && ch <= 'z'))… in get_skip_sym()
1364 } else if (YYPOS < YYEND && (ch <= '!' || (ch >= '#' && ch <= '[') || ch >= ']')) { in get_skip_sym()
1388 } else if (YYPOS < YYEND && (ch <= '&' || (ch >= '(' && ch <= '[') || ch >= ']')) { in get_skip_sym()
1398 if (ch == '\t' || ch == '\v' || ch == '\f' || ch == ' ') { in get_skip_sym()
1422 } else if (YYPOS < YYEND && (ch <= '\t' || ch == '\v' || ch == '\f' || ch >= '\016')) { in get_skip_sym()
1433 } else if (ch == 'F' || ch == 'L' || ch == 'f' || ch == 'l') { in get_skip_sym()
1532 if (ch == '+' || ch == '-') { in get_skip_sym()
1620 } else if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f')) { in get_skip_sym()
1630 } else if (ch == 'F' || ch == 'L' || ch == 'f' || ch == 'l') { in get_skip_sym()
[all …]
/PHP-7.4/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.4/ext/curl/
H A Dinterface.c179 ZEND_ASSERT(ch && ch->handlers); in _php_curl_verify_handlers()
204 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
218 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
232 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
1917 return ch; in alloc_curl_handle()
1996 php_curl *ch; in PHP_FUNCTION() local
2013 ch->cp = cp; in PHP_FUNCTION()
3007 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
3119 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt()
3178 php_curl *ch; in PHP_FUNCTION() local
[all …]
/PHP-7.4/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);
37 var_dump(curl_exec($ch));
43 var_dump(curl_exec($ch));
45 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 0);
48 var_dump(curl_exec($ch));
50 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
53 var_dump(curl_exec($ch));
58 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 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 Dbug66109.phpt9 $ch = curl_init();
10 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?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_basic_024.phpt15 $ch = curl_init();
19 curl_setopt($ch, CURLOPT_URL, $url);
20 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
21 curl_exec($ch);
22 var_dump(CURLPROTO_HTTP === curl_getinfo($ch, CURLINFO_PROTOCOL));
23 var_dump(0 === curl_getinfo($ch, CURLINFO_PROXY_SSL_VERIFYRESULT));
24 var_dump(curl_getinfo($ch, CURLINFO_SCHEME));
25 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 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 Dbug54995.phpt15 $ch = curl_init();
16 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc");
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_ftp_pasv.phpt20 $ch = curl_init ();
23 // curl_setopt ( $ch , CURLOPT_VERBOSE, 1 );
37 curl_setopt ( $ch , CURLOPT_URL, $url );
38 curl_setopt ( $ch , CURLOPT_TRANSFERTEXT, 1 );
41 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 );
42 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 );
45 curl_setopt ( $ch , CURLOPT_INFILE, $fp );
47 curl_setopt ( $ch , CURLOPT_PUT, 1 );
48 curl_setopt ( $ch , CURLOPT_UPLOAD, 1 );
50 $result = curl_exec ( $ch );
[all …]
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_basic_023.phpt15 $ch = curl_init();
16 var_dump(0 === curl_getinfo($ch, CURLINFO_HTTP_VERSION));
21 curl_setopt($ch, CURLOPT_URL, $url);
22 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
23 curl_exec($ch);
24 var_dump(CURL_HTTP_VERSION_1_1 === curl_getinfo($ch, CURLINFO_HTTP_VERSION));
25 curl_close($ch);
H A Dbug77711.phpt10 $ch = curl_init();
11 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1);
12 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=file");
13 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 var_dump(curl_setopt($ch, CURLOPT_POSTFIELDS, $params));
21 var_dump(curl_exec($ch));
22 curl_close($ch);
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 Dcurl_basic_009.phpt11 $ch = curl_init();
12 curl_setopt($ch, CURLOPT_URL, $url);
14 curl_exec($ch);
15 var_dump(curl_error($ch));
16 var_dump(curl_errno($ch));
17 curl_close($ch);
H A Dcurl_copy_handle_basic_009.phpt11 $ch = curl_init($url);
13 curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
14 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
15 $ch2 = curl_copy_handle($ch);
16 echo curl_exec($ch), PHP_EOL;
17 var_dump(strstr(curl_getinfo($ch, CURLINFO_HEADER_OUT), "\r", true));
18 unset($ch);
H A Dbug67643.phpt9 $ch = curl_init();
10 curl_setopt($ch, CURLOPT_URL, 'file://'. __DIR__ . DIRECTORY_SEPARATOR .'curl_testdata1.txt');
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 Dbug80595.phpt9 $ch = curl_init();
10 curl_setopt_array($ch, [
16 curl_setopt($ch, CURLOPT_POSTFIELDS, ['foo' => 'bar']);
17 var_dump(curl_exec($ch));
19 curl_setopt($ch, CURLOPT_POSTFIELDS, []);
20 var_dump(curl_exec($ch));
H A Dcurl_file_upload_stream.phpt12 $ch = curl_init();
13 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, 1);
14 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=file");
15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 var_dump(curl_setopt($ch, CURLOPT_POSTFIELDS, $params));
21 var_dump(curl_exec($ch));
22 curl_close($ch);
/PHP-7.4/ext/standard/
H A Dscanf.c145 ch = format; in BuildCharSet()
148 ch = ++format; in BuildCharSet()
156 ch = end++; in BuildCharSet()
163 ch = end++; in BuildCharSet()
178 start = *ch; in BuildCharSet()
179 if (*ch == ']' || *ch == '-') { in BuildCharSet()
181 ch = format++; in BuildCharSet()
189 start = *ch; in BuildCharSet()
217 ch = format++; in BuildCharSet()
409 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in ValidateFormat()
[all …]
/PHP-7.4/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 …]

Completed in 90 milliseconds

1234567