/PHP-7.1/sapi/cli/ |
H A D | php_http_parser.c | 324 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.1/ext/curl/ |
H A D | interface.c | 241 ZEND_ASSERT(ch && ch->handlers); in _php_curl_verify_handlers() 266 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers() 280 curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); in _php_curl_verify_handlers() 294 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers() 1896 return ch; in alloc_curl_handle() 1975 php_curl *ch; in PHP_FUNCTION() local 1992 ch->cp = cp; in PHP_FUNCTION() 2804 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt() 2924 curl_easy_setopt(ch->cp, CURLOPT_FNMATCH_DATA, ch); in _php_curl_setopt() 2981 php_curl *ch; in PHP_FUNCTION() local [all …]
|
/PHP-7.1/ext/standard/ |
H A D | scanf.c | 149 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 D | base64.c | 139 int ch, i = 0, j = 0, padding = 0; in php_base64_decode_ex() local 146 ch = *current++; in php_base64_decode_ex() 147 if (ch == base64_pad) { in php_base64_decode_ex() 152 ch = base64_reverse_table[ch]; in php_base64_decode_ex() 155 if (ch < 0) { in php_base64_decode_ex() 160 if (ch == -1) { in php_base64_decode_ex() 164 if (ch == -2 || padding) { in php_base64_decode_ex() 171 ZSTR_VAL(result)[j] = ch << 2; in php_base64_decode_ex() 174 ZSTR_VAL(result)[j++] |= ch >> 4; in php_base64_decode_ex() 178 ZSTR_VAL(result)[j++] |= ch >>2; in php_base64_decode_ex() [all …]
|
/PHP-7.1/ext/curl/tests/ |
H A D | curl_file_upload.phpt | 19 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 D | bug27023.phpt | 12 $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 D | curl_setopt_basic004.phpt | 18 $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 D | bug66109.phpt | 9 $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 D | curl_setopt_basic003.phpt | 18 $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 D | curl_CURLOPT_READDATA.phpt | 22 $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 D | bug54995.phpt | 15 $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 D | curl_copy_handle_basic_008.phpt | 11 $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 D | curl_reset.phpt | 19 $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 D | curl_ftp_pasv.phpt | 21 $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 D | curl_basic_006.phpt | 10 /* 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 D | curl_basic_009.phpt | 11 $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 D | bug67643.phpt | 9 $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);
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | chunk_split_variation11.phpt | 22 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 D | chunk_split_variation9.phpt | 41 ")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 is to test chunk_split() with various ending string" 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.1/scripts/dev/generate-phpt/tests/ |
H A D | gtIfClassHasMethodTest.php | 12 $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 D | gtIsSpecifiedFunctionOrMethodTest.php | 12 $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 D | gtIsValidClassTest.php | 12 $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 D | gtIsValidFunctionTest.php | 12 $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 D | gtIsValidMethodTest.php | 12 $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 D | gtIsSpecifiedTestTypeTest.php | 12 $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'));
|