Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 70) sorted by relevance

123

/PHP-8.2/ext/standard/
H A Ddns.c502 snprintf(name, sizeof(name), "%d.%d.%d.%d", cp[0], cp[1], cp[2], cp[3]); in php_parserr()
538 cp++; in php_parserr()
544 cp++; in php_parserr()
556 cp++; in php_parserr()
560 cp++; in php_parserr()
669 cp++; in php_parserr()
767 cp++; in php_parserr()
774 cp++; in php_parserr()
1004 while (an-- && cp && cp < end) { in PHP_FUNCTION()
1017 while (ns-- > 0 && cp && cp < end) { in PHP_FUNCTION()
[all …]
H A Dcrypt_sha256.c339 char *cp; in php_sha256_crypt_r() local
455 cp = __php_mempcpy((void *)cp, (const void *)temp_result, 32); in php_sha256_crypt_r()
457 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
474 cp = __php_mempcpy(cp, temp_result, 32); in php_sha256_crypt_r()
476 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
523 cp += n; in php_sha256_crypt_r()
527 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
531 *cp++ = '$'; in php_sha256_crypt_r()
541 *cp++ = b64t[w & 0x3f]; \ in php_sha256_crypt_r()
562 *cp = '\0'; /* Terminate the string. */ in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c372 char *cp; in php_sha512_crypt_r() local
489 cp = __php_mempcpy((void *) cp, (const void *)temp_result, 64); in php_sha512_crypt_r()
492 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
509 cp = __php_mempcpy(cp, temp_result, 64); in php_sha512_crypt_r()
511 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
558 cp += n; in php_sha512_crypt_r()
562 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
566 *cp++ = '$'; in php_sha512_crypt_r()
576 *cp++ = b64t[w & 0x3f]; \ in php_sha512_crypt_r()
609 *cp = '\0'; /* Terminate the string. */ in php_sha512_crypt_r()
[all …]
H A Dflock_compat.c162 int inet_aton(const char *cp, struct in_addr *ap) in inet_aton() argument
168 char cc = *cp; in inet_aton()
201 } while (*cp++) ; in inet_aton()
/PHP-8.2/ext/intl/uchar/
H A Duchar.c53 UChar32 cp; in IC_METHOD() local
74 UChar32 cp; in IC_METHOD() local
86 UChar32 cp; in IC_METHOD() local
106 UChar32 cp; in IC_METHOD() local
150 UChar32 cp; in IC_METHOD() local
203 UChar32 cp; in IC_METHOD() local
215 UChar32 cp; in IC_METHOD() local
420 UChar32 cp; in IC_METHOD() local
460 UChar32 cp; in IC_METHOD() local
495 UChar32 cp; in IC_METHOD() local
[all …]
/PHP-8.2/ext/standard/tests/file/windows_mb_path/
H A Dutil.inc15 function set_active_cp($cp, $echo = true)
18 $ret = exec("chcp $cp");
20 if (!sapi_windows_cp_set($cp)) {
21 echo "Failed to set cp $cp\n";
29 function get_basename_with_cp($path, $cp, $echo = true)
32 set_active_cp($cp, $echo);
47 function skip_if_wrong_cp($cp, $kind = "")
49 if (get_active_cp($kind) != $cp) {
50 die("skip this test expect codepage $cp");
82 $now = get_basename_with_cp($full, $cp, false);
[all …]
H A Dutil_utf8.inc3 function create_data_from_utf8($id, $item = "", $cp = 65001)
46 create_verify_file($prefix, $item, "opened an utf8 filename for reading", $cp);
63 create_verify_file($prefix, $item, $content, $cp);
85 create_verify_dir($prefix, $item, $cp);
89 create_verify_file($prefix, $item, "", $cp);
/PHP-8.2/win32/
H A Dcodepage.c377 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
382 return cp; in php_win32_cp_get_by_enc()
385 if (cp->enc) { in php_win32_cp_get_by_enc()
392 return cp; in php_win32_cp_get_by_enc()
399 return cp; in php_win32_cp_get_by_enc()
557 cp = cur_cp; in php_win32_cp_cli_do_setup()
560 if (!cp) { in php_win32_cp_cli_do_setup()
565 return cp; in php_win32_cp_cli_do_setup()
568 return cp; in php_win32_cp_cli_do_setup()
612 if (!cp) { in PHP_FUNCTION()
[all …]
H A Dcp_enc_map_gen.c5 struct cp { struct
12 static const struct cp cp_map[] = { argument
174 DWORD cp; in main() local
176 struct cp *cur; in main()
H A Dinet.c19 int inet_aton(const char *cp, struct in_addr *inp) { in inet_aton() argument
20 inp->s_addr = inet_addr(cp); in inet_aton()
/PHP-8.2/ext/opcache/jit/dynasm/
H A Ddasm_x86.h373 do { *((unaligned_short *)cp) = (unsigned short)(x); cp+=2; } while (0)
375 do { *((unaligned_int *)cp) = (unsigned int)(x); cp+=4; } while (0)
377 do { *((unaligned_long_long *)cp) = (unsigned long long)(x); cp+=8; } while (0)
389 return cp; in dasma_()
391 #define dasma(x) (cp = dasma_(cp, (x)))
398 unsigned char *cp = base; in dasm_encode() local
443 cp--; in dasm_encode()
448 else if (n == 4 && t < 0x20) { cp[-1] ^= n; *cp++ = 0x20; } in dasm_encode()
449 cp[-1] ^= n; in dasm_encode()
462 if (shrink == 4) { cp--; cp[-1] = *cp-0x10; } else cp[-1] = 0xeb; in dasm_encode()
[all …]
H A Ddasm_arm64.h445 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
450 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xe1a00000; in dasm_encode()
466 cp[-1] |= ((n >> 2) & 0x03ffffff); in dasm_encode()
469 cp[-1] |= ((n << 3) & 0x00ffffe0); in dasm_encode()
479 cp[0] = (unsigned int)((ptrdiff_t)cp - 4 + n); in dasm_encode()
480 cp[1] = (unsigned int)(((ptrdiff_t)cp - 4 + n) >> 32); in dasm_encode()
481 cp += 2; in dasm_encode()
490 na = na - (ptrdiff_t)cp + 4; in dasm_encode()
510 cp[-1] |= (dasm_imm13(n, n) << 10); in dasm_encode()
522 *cp++ = n; in dasm_encode()
[all …]
H A Ddasm_arm.h349 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
366 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
371 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0xe1a00000; in dasm_encode()
375 n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp - 4); in dasm_encode()
381 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base) - 4; in dasm_encode()
385 cp[-1] |= ((n >> 2) & 0x00ffffff); in dasm_encode()
406 cp[-1] |= dasm_imm12((unsigned int)n); in dasm_encode()
409 cp[-1] |= ((n & 0xf000) << 4) | (n & 0x0fff); in dasm_encode()
412 cp[-1] |= n >= 0 ? (0x00800000 | (n & 0x0f) | ((n & 0xf0) << 4)) : in dasm_encode()
416 cp[-1] |= n >= 0 ? (0x00800000 | n) : (-n); in dasm_encode()
[all …]
H A Ddasm_mips.h327 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
344 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
346 n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1); in dasm_encode()
349 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000; in dasm_encode()
353 n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp); in dasm_encode()
363 n = n - (int)((char *)cp - base); in dasm_encode()
368 cp[-1] |= ((n>>2) & ((1<<e)-1)); in dasm_encode()
376 cp[-1] |= ((n>>3) & 4); n &= 0x1f; in dasm_encode()
379 cp[-1] |= (n & ((1<<((ins>>5)&31))-1)) << (ins&31); in dasm_encode()
381 default: *cp++ = ins; break; in dasm_encode()
[all …]
H A Ddasm_ppc.h331 unsigned int *cp = (unsigned int *)buffer; in dasm_encode() local
348 case DASM_ESC: *cp++ = *p++; break; in dasm_encode()
350 n = DASM_EXTERN(Dst, (unsigned char *)cp, (ins & 2047), 1) - 4; in dasm_encode()
353 ins &= 255; while ((((char *)cp - base) & ins)) *cp++ = 0x60000000; in dasm_encode()
357 n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp); in dasm_encode()
363 n = *DASM_POS2PTR(D, n) - (int)((char *)cp - base); in dasm_encode()
368 cp[-1] |= ((n+4) & ((ins & 2048) ? 0x0000fffc: 0x03fffffc)); in dasm_encode()
375 cp[-1] |= (n & ((1<<((ins>>5)&31))-1)) << (ins&31); in dasm_encode()
378 cp[-1] |= (ins & 1) ? ((n&31)<<11)|((n&32)>>4) : ((n&31)<<6)|(n&32); in dasm_encode()
380 default: *cp++ = ins; break; in dasm_encode()
[all …]
/PHP-8.2/ext/mbstring/libmbfl/filters/
H A Dutf7_helper.h17 static inline bool has_surrogate(uint16_t cp, bool is_surrogate) in has_surrogate() argument
19 return !is_surrogate && cp >= 0xD800 && cp <= 0xDBFF; in has_surrogate()
H A Dmbfilter_utf7imap.c477 if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
478 *out++ = ((*surrogate1 & 0x3FF) << 10) + (cp & 0x3FF) + 0x10000; in handle_utf16_cp()
485 } else if (cp >= 0xD800 && cp <= 0xDBFF) { in handle_utf16_cp()
486 *surrogate1 = cp; in handle_utf16_cp()
487 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
490 } else if (cp >= 0x20 && cp <= 0x7E && cp != '&') { in handle_utf16_cp()
493 *out++ = cp; in handle_utf16_cp()
735 static bool is_utf16_cp_valid(uint16_t cp, bool is_surrogate) in is_utf16_cp_valid() argument
738 return cp >= 0xDC00 && cp <= 0xDFFF; in is_utf16_cp_valid()
739 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in is_utf16_cp_valid()
[all …]
H A Dmbfilter_utf7.c454 static uint32_t* handle_utf16_cp(uint16_t cp, uint32_t *out, uint16_t *surrogate1) in handle_utf16_cp() argument
458 if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
459 *out++ = ((*surrogate1 & 0x3FF) << 10) + (cp & 0x3FF) + 0x10000; in handle_utf16_cp()
466 } else if (cp >= 0xD800 && cp <= 0xDBFF) { in handle_utf16_cp()
467 *surrogate1 = cp; in handle_utf16_cp()
468 } else if (cp >= 0xDC00 && cp <= 0xDFFF) { in handle_utf16_cp()
472 *out++ = cp; in handle_utf16_cp()
712 static bool is_utf16_cp_valid(uint16_t cp, bool is_surrogate) in is_utf16_cp_valid() argument
715 return cp >= 0xDC00 && cp <= 0xDFFF; in is_utf16_cp_valid()
718 return !(cp >= 0xDC00 && cp <= 0xDFFF); in is_utf16_cp_valid()
/PHP-8.2/ext/curl/
H A Dinterface.c448 CURL *cp; in curl_clone_obj() local
458 cp = curl_easy_duphandle(ch->cp); in curl_clone_obj()
459 if (!cp) { in curl_clone_obj()
464 clone_ch->cp = cp; in curl_clone_obj()
1121 CURL *cp; in PHP_FUNCTION() local
1130 if (!cp) { in PHP_FUNCTION()
1137 ch->cp = cp; in PHP_FUNCTION()
1566 CURL *cp; in PHP_FUNCTION() local
1577 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
1578 if (!cp) { in PHP_FUNCTION()
[all …]
/PHP-8.2/.github/actions/setup-x64/
H A Daction.yml15 sudo cp ext/snmp/tests/snmpd.conf /etc/snmp
16 sudo cp ext/snmp/tests/bigtest /etc/snmp
21 sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf
22 sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass
/PHP-8.2/ext/intl/uchar/tests/
H A Dbasic-functionality.phpt8 function unicode_info($cp) {
24 $ncp = IntlChar::ord($cp);
30 IntlChar::hasBinaryProperty($cp, $prop) ? "true" : "false"
35 var_dump(IntlChar::$method($cp));
37 echo " charAge(): ", implode('.', IntlChar::charAge($cp)), "\n";
43 foreach($codepoints as $cp) {
44 unicode_info($cp);
47 IntlChar::enumCharNames(0x2600, 0x2610, function($cp, $nc, $name) {
48 printf("U+%04x %s\n", $cp, $name);
/PHP-8.2/ext/imap/tests/setup/
H A Dsetup.sh4 sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf
5 sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass
/PHP-8.2/ext/dba/
H A Dinstall_cdb.sh40 cp ../error.o .
49 cp cdb.h uint32.h "$prefix/include"
/PHP-8.2/ext/mbstring/tests/
H A Dutf8_mobile_encodings.phpt99 $cp = pack('N', rand(1, 0x10FFFF));
100 if (isset($fromUnicode[$cp]))
102 …if (mb_convert_encoding($cp, $encoding, 'UTF-32BE') !== mb_convert_encoding($cp, 'UTF-8', 'UTF-32B…
103 die("Expected U+" . bin2hex($cp) . " to be the same in UTF-8 and " . $encoding);
124 foreach ($toUnicode as $char => $cp)
125 testValidString($char, $cp, $encoding, 'UCS-4BE', false);
126 foreach ($fromUnicode as $cp => $char)
127 testValidString($cp, $char, 'UCS-4BE', $encoding, false);
128 foreach ($invalidCodepoints as $cp => $_)
129 convertInvalidString($cp, '%', 'UCS-4BE', $encoding);
/PHP-8.2/ext/filter/tests/
H A D040.phpt8 ap[]=1&bp=test&cp=
14 var_dump(filter_has_var(INPUT_POST, "cp"));

Completed in 75 milliseconds

123