/PHP-5.3/ext/curl/ |
H A D | interface.c | 211 if (!ch || !ch->handlers) { in _php_curl_verify_handlers() 227 if (ch->handlers->read && ch->handlers->read->stream) { in _php_curl_verify_handlers() 238 curl_easy_setopt(ch->cp, CURLOPT_INFILE, (void *) ch); in _php_curl_verify_handlers() 255 if (ch->handlers->write && ch->handlers->write->stream) { in _php_curl_verify_handlers() 267 curl_easy_setopt(ch->cp, CURLOPT_FILE, (void *) ch); in _php_curl_verify_handlers() 1434 memset(&(*ch)->err, 0, sizeof((*ch)->err)); in alloc_curl_handle() 1547 ch->cp = cp; in PHP_FUNCTION() 1620 ch->uses++; in PHP_FUNCTION() 2013 curl_easy_setopt(ch->cp, CURLOPT_PROGRESSDATA, ch); in _php_curl_setopt() 2600 ch->uses--; in PHP_FUNCTION() [all …]
|
H A D | multi.c | 78 php_curl *ch; in PHP_FUNCTION() local 89 ch->uses++; in PHP_FUNCTION() 104 php_curl *ch; in _php_curl_multi_cleanup_list() local 112 if (!ch) { in _php_curl_multi_cleanup_list() 117 ch->uses--; in _php_curl_multi_cleanup_list() 140 php_curl *ch; in PHP_FUNCTION() local 149 --ch->uses; in PHP_FUNCTION() 219 php_curl *ch; in PHP_FUNCTION() local 244 php_curl *ch; in PHP_FUNCTION() local 291 php_curl *ch; in PHP_FUNCTION() local [all …]
|
/PHP-5.3/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() 414 if ((*ch == 'l') || (*ch == 'L') || (*ch == 'h')) { in ValidateFormat() [all …]
|
H A D | base64.c | 146 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.3/ext/openssl/tests/ |
H A D | sni_001.phpt | 14 * 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.3/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-5.3/ext/curl/tests/ |
H A D | bug27023.phpt | 16 $ch = curl_init(); 18 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 21 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 22 var_dump(curl_exec($ch)); 25 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 26 var_dump(curl_exec($ch)); 29 curl_setopt($ch, CURLOPT_POSTFIELDS, $params); 30 var_dump(curl_exec($ch)); 34 var_dump(curl_exec($ch)); 38 var_dump(curl_exec($ch)); [all …]
|
H A D | curl_setopt_basic004.phpt | 17 $ch = curl_init(); 19 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 20 curl_setopt($ch, CURLOPT_URL, $url); 22 $curl_content = curl_exec($ch); 23 curl_close($ch); 29 $ch = curl_init(); 31 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); 32 curl_setopt($ch, CURLOPT_URL, $url); 34 $curl_content = curl_exec($ch); 36 curl_close($ch);
|
H A D | curl_CURLOPT_READDATA.phpt | 20 $ch = curl_init($url); 21 curl_setopt($ch, CURLOPT_URL, $url); 22 curl_setopt($ch, CURLOPT_POST, true); 23 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 24 curl_setopt($ch, CURLOPT_READDATA, fopen($tempname, 'rb')); 25 curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:', "Content-Length: {$datalen}")); 27 if (false === $response = curl_exec($ch)) { 28 echo 'Error #' . curl_errno($ch) . ': ' . curl_error($ch); 33 curl_close($ch);
|
H A D | curl_setopt_basic003.phpt | 17 $ch = curl_init(); 19 curl_setopt($ch, CURLOPT_HTTPHEADER, 1); 21 $curl_content = curl_exec($ch); 22 curl_close($ch); 26 $ch = curl_init(); 29 curl_setopt($ch, CURLOPT_HTTPHEADER, array()); 30 curl_setopt($ch, CURLOPT_URL, $host); 32 $curl_content = curl_exec($ch); 34 curl_close($ch);
|
H A D | curl_copy_handle_basic_008.phpt | 10 $ch = curl_init($url); 12 curl_setopt($ch, CURLOPT_NOPROGRESS, 0); 13 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { }); 15 $ch2 = curl_copy_handle($ch); 16 echo curl_exec($ch), PHP_EOL; 17 unset($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 | 13 /* Prototype : bool curl_setopt(resource ch, int option, mixed value) 22 echo '*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***' . "\n"; 25 $ch = curl_init(); 28 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 29 curl_setopt($ch, CURLOPT_WRITEFUNCTION, function ($ch, $data) { 34 curl_exec($ch); 35 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 | curl_basic_010.phpt | 17 $ch = curl_init(); 18 curl_setopt($ch, CURLOPT_PROXY, uniqid().":".uniqid()); 19 curl_setopt($ch, CURLOPT_URL, $url); 21 curl_exec($ch); 22 var_dump(curl_error($ch)); 23 var_dump(curl_errno($ch)); 24 curl_close($ch);
|
H A D | curl_multi_segfault.phpt | 21 $ch = curl_init (); 23 curl_setopt ( $ch , CURLOPT_URL, $url ); 24 curl_setopt ( $ch , CURLOPT_RETURNTRANSFER, 1 ); 27 curl_setopt ( $ch , CURLOPT_FTP_USE_EPSV, 0 ); 28 curl_setopt ( $ch , CURLOPT_FTP_SKIP_PASV_IP, 1 ); 31 curl_multi_add_handle($cmh, $ch); 48 var_dump(is_string(curl_multi_getcontent($ch))); 49 curl_multi_remove_handle($cmh, $ch); 50 curl_close($ch);
|
H A D | curl_copy_handle_basic_005.phpt | 16 $ch = curl_init(); 19 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 20 curl_setopt($ch, CURLOPT_POST, 1); 21 curl_setopt($ch, CURLOPT_POSTFIELDS, "Hello=World&Foo=Bar&Person=John%20Doe"); 22 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 25 $curl_content = curl_exec($ch); 26 $copy = curl_copy_handle($ch); 27 curl_close($ch);
|
H A D | curl_setopt_basic002.phpt | 21 $ch = curl_init(); 23 curl_setopt($ch, CURLOPT_VERBOSE, 1); 24 curl_setopt($ch, CURLOPT_STDERR, $handle); 25 $curl_content = curl_exec($ch); 34 curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use 35 curl_setopt($ch, CURLOPT_STDERR, $handle); 36 $data = curl_exec($ch); 44 curl_close($ch);
|
/PHP-5.3/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'));
|