Home
last modified time | relevance | path

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

12345678

/php-src/ext/ffi/
H A Dffi_parser.c1097 if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f')) { in get_skip_sym()
1266 …if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') || ch == '_' || (ch >= 'a' && ch <= 'z'))… in get_skip_sym()
1362 } else if (YYPOS < YYEND && (ch <= '!' || (ch >= '#' && ch <= '[') || ch >= ']')) { in get_skip_sym()
1386 } else if (YYPOS < YYEND && (ch <= '&' || (ch >= '(' && ch <= '[') || ch >= ']')) { in get_skip_sym()
1396 if (ch == '\t' || ch == '\v' || ch == '\f' || ch == ' ') { in get_skip_sym()
1420 } else if (YYPOS < YYEND && (ch <= '\t' || ch == '\v' || ch == '\f' || ch >= '\016')) { in get_skip_sym()
1431 } else if (ch == 'F' || ch == 'L' || ch == 'f' || ch == 'l') { in get_skip_sym()
1530 if (ch == '+' || ch == '-') { in get_skip_sym()
1618 } else if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f')) { in get_skip_sym()
1628 } else if (ch == 'F' || ch == 'L' || ch == 'f' || ch == 'l') { in get_skip_sym()
[all …]
/php-src/ext/curl/
H A Dinterface.c174 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers()
188 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers()
202 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers()
438 php_curl *ch; in curl_clone_obj() local
1104 php_curl *ch; in init_curl_handle_into_zval() local
1111 return ch; in init_curl_handle_into_zval()
1229 ch->cp = cp; in PHP_FUNCTION()
1253 curl_easy_setopt(ch->cp, option, (void *) ch); in _php_copy_callback()
2147 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt()
2199 curl_easy_setopt(ch->cp, CURLOPT_XFERINFODATA, ch); in _php_curl_setopt()
[all …]
/php-src/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-src/ext/curl/tests/
H A Dcurl_setopt_ssl.phpt84 check_error($ch);
85 curl_close($ch);
98 check_error($ch);
99 curl_close($ch);
112 check_error($ch);
113 curl_close($ch);
126 check_error($ch);
127 curl_close($ch);
143 curl_close($ch);
159 curl_close($ch);
[all …]
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));
53 var_dump(curl_exec($ch));
55 curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
58 var_dump(curl_exec($ch));
63 var_dump(curl_exec($ch));
[all …]
H A Dcurl_setopt_CURLOPT_ACCEPT_ENCODING.phpt11 $ch = curl_init();
14 curl_setopt($ch, CURLOPT_URL, $url);
15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
16 curl_setopt($ch, CURLOPT_ACCEPT_ENCODING, "gzip");
17 curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
20 curl_exec($ch);
21 echo curl_getinfo($ch, CURLINFO_HEADER_OUT);
24 curl_setopt($ch, CURLOPT_ACCEPT_ENCODING, NULL);
25 curl_exec($ch);
26 echo curl_getinfo($ch, CURLINFO_HEADER_OUT);
[all …]
H A Dcurl_upkeep_001.phpt15 $ch = curl_init();
16 curl_setopt($ch,CURLOPT_URL,$url);
17 curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
18 curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_2_0);
19 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
20 curl_setopt($ch, CURLOPT_UPKEEP_INTERVAL_MS, 200);
21 if (curl_exec($ch)) {
23 var_dump(curl_upkeep($ch));
25 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 Dcurl_string_file_upload.phpt17 var_dump(curl_exec($ch));
22 $ch = curl_init();
24 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
28 testcurl($ch, 'foo.txt', $data);
30 testcurl($ch, '', $data);
31 testcurl($ch, 'foo.txt', '');
41 var_dump(curl_exec($ch));
48 var_dump(curl_exec($ch));
54 var_dump(curl_exec($ch));
59 $ch2 = clone $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.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_basic_024.phpt10 $ch = curl_init();
14 curl_setopt($ch, CURLOPT_URL, $url);
15 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
16 curl_exec($ch);
17 var_dump(CURLPROTO_HTTP === curl_getinfo($ch, CURLINFO_PROTOCOL));
18 var_dump(0 === curl_getinfo($ch, CURLINFO_PROXY_SSL_VERIFYRESULT));
19 var_dump(curl_getinfo($ch, CURLINFO_SCHEME));
20 curl_close($ch);
H A Dcurl_pause_001.phpt18 public function __invoke($ch, $hReadHandle, $iMaxOut)
26 $ch = curl_init();
27 curl_setopt($ch, CURLOPT_URL, "{$host}/get.inc?test=input");
28 curl_setopt($ch, CURLOPT_UPLOAD, 1);
29 curl_setopt($ch, CURLOPT_READFUNCTION, new Input);
30 curl_setopt($ch, CURLOPT_INFILE, $inputHandle);
31 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
34 curl_multi_add_handle($mh, $ch);
37 curl_pause($ch, CURLPAUSE_CONT);
44 echo curl_multi_getcontent($ch);
H A Dcurl_setopt_basic003.phpt18 $ch = curl_init();
21 curl_setopt($ch, CURLOPT_HTTPHEADER, 1);
26 $curl_content = curl_exec($ch);
27 curl_close($ch);
31 $ch = curl_init();
34 curl_setopt($ch, CURLOPT_HTTPHEADER, array());
35 curl_setopt($ch, CURLOPT_URL, $host);
37 $curl_content = curl_exec($ch);
39 curl_close($ch);
H A Dcurl_basic_027.phpt15 $ch = curl_init();
16 var_dump(array_key_exists('capath', curl_getinfo($ch)));
17 var_dump(array_key_exists('cainfo', curl_getinfo($ch)));
22 curl_setopt($ch, CURLOPT_URL, $url);
23 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
24 var_dump(curl_setopt($ch, CURLOPT_SSH_HOSTKEYFUNCTION, function ($ch, $keytype, $key, $keylen) {
31 curl_exec($ch);
32 curl_close($ch);
H A Dcurl_reset.phpt17 $ch = curl_init();
18 curl_setopt($ch, CURLOPT_FILE, $testfile_fp);
19 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
20 curl_exec($ch);
22 curl_reset($ch);
23 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
24 curl_exec($ch);
26 curl_close($ch);
H A Dcurl_basic_023.phpt10 $ch = curl_init();
11 var_dump(0 === curl_getinfo($ch, CURLINFO_HTTP_VERSION));
16 curl_setopt($ch, CURLOPT_URL, $url);
17 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
18 curl_exec($ch);
19 var_dump(CURL_HTTP_VERSION_1_1 === curl_getinfo($ch, CURLINFO_HTTP_VERSION));
20 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 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_025.phpt16 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_URL, $url);
21 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
22 curl_setopt($ch, CURLOPT_POSTFIELDS, "data");
23 curl_exec($ch);
24 var_dump(curl_getinfo($ch, CURLINFO_EFFECTIVE_METHOD));
25 curl_close($ch);
H A Dcurl_basic_030.phpt15 $ch = curl_init();
20 curl_setopt($ch, CURLOPT_URL, $url);
21 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
22 var_dump(curl_setopt($ch, CURLOPT_CA_CACHE_TIMEOUT, 1));
23 var_dump(curl_setopt($ch, CURLOPT_QUICK_EXIT, 1000));
24 curl_exec($ch);
25 curl_close($ch);
/php-src/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-src/ext/standard/tests/strings/
H A Dchunk_split_variation11.phpt16 sPeci@! ch@r$ :) & numbers 222.This is \k wrong escape char.
29 ")speci@! ch@r$(", //String with special chars
45 sPeci@! ch@r$ :) & numbers 222.This is \k wrong escape char."
49 s Peci@! ch@r$ :) & number s 222. This i s \k w rong e scape char. "
53 saPeci@!a ch@r$a :) & anumberas 222.aThis ias \k warong eascape achar.a"
57 sENDINGPeci@!ENDING ch@r$ENDING :) & ENDINGnumberENDINGs 222.ENDINGThis iENDINGs \k wENDINGrong eEN…
71 ch@r$
84 s123Peci@!123 ch@r$123 :) & 123number123s 222.123This i123s \k w123rong e123scape 123char.123"
86 string(398) "This i)speci@! ch@r$(s here)speci@! ch@r$(doc st)speci@! ch@r$(ring w)speci@! ch@r$(it…
87 .)speci@! ch@r$(It als)speci@! ch@r$(o cont)speci@! ch@r$(ains
[all …]
H A Dchunk_split_variation9.phpt35 ")speci@! ch@r$("
51 string(66) "This i s to t est ch unk_sp lit() with v arious endin g stri ng "
57 string(106) "This i@#$%^s to t@#$%^est ch@#$%^unk_sp@#$%^lit() @#$%^with v@#$%^arious@#$%^ endin@#$…
59 string(66) "This i s to t est ch unk_sp lit() with v arious endin g stri ng "
63 est ch
75 est ch
87 est ch
97 string(66) "This i%0s to t%0est ch%0unk_sp%0lit() %0with v%0arious%0 endin%0g stri%0ng%0"
101 string(106) "This i(MSG)s to t(MSG)est ch(MSG)unk_sp(MSG)lit() (MSG)with v(MSG)arious(MSG) endin(MS…
105 string(196) "This i)numbers 1234(s to t)numbers 1234(est ch)numbers 1234(unk_sp)numbers 1234(lit() …
[all …]

Completed in 73 milliseconds

12345678