Home
last modified time | relevance | path

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

123

/PHP-8.1/ext/standard/
H A Ddns.c522 snprintf(name, sizeof(name), "%d.%d.%d.%d", cp[0], cp[1], cp[2], cp[3]); in php_parserr()
558 cp++; in php_parserr()
564 cp++; in php_parserr()
576 cp++; in php_parserr()
580 cp++; in php_parserr()
689 cp++; in php_parserr()
787 cp++; in php_parserr()
794 cp++; in php_parserr()
1024 while (an-- && cp && cp < end) { in PHP_FUNCTION()
1037 while (ns-- > 0 && cp && cp < end) { in PHP_FUNCTION()
[all …]
H A Dcrypt_sha256.c340 char *cp; in php_sha256_crypt_r() local
446 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r()
448 cp = __php_mempcpy((void *)cp, (const void *)temp_result, 32); in php_sha256_crypt_r()
450 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
464 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
466 cp = __php_mempcpy(cp, temp_result, 32); in php_sha256_crypt_r()
468 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
515 cp += n; in php_sha256_crypt_r()
519 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
523 *cp++ = '$'; in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c373 char *cp; in php_sha512_crypt_r() local
480 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r()
482 cp = __php_mempcpy((void *) cp, (const void *)temp_result, 64); in php_sha512_crypt_r()
485 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
499 cp = s_bytes = alloca(salt_len); in php_sha512_crypt_r()
501 cp = __php_mempcpy(cp, temp_result, 64); in php_sha512_crypt_r()
503 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
550 cp += n; in php_sha512_crypt_r()
554 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
558 *cp++ = '$'; 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.1/ext/intl/uchar/
H A Duchar.c52 UChar32 cp; in IC_METHOD() local
73 UChar32 cp; in IC_METHOD() local
85 UChar32 cp; in IC_METHOD() local
105 UChar32 cp; in IC_METHOD() local
149 UChar32 cp; in IC_METHOD() local
202 UChar32 cp; in IC_METHOD() local
214 UChar32 cp; in IC_METHOD() local
418 UChar32 cp; in IC_METHOD() local
458 UChar32 cp; in IC_METHOD() local
493 UChar32 cp; in IC_METHOD() local
[all …]
/PHP-8.1/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.1/win32/
H A Dcodepage.c343 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
348 return cp; in php_win32_cp_get_by_enc()
351 if (cp->enc) { in php_win32_cp_get_by_enc()
358 return cp; in php_win32_cp_get_by_enc()
365 return cp; in php_win32_cp_get_by_enc()
523 cp = cur_cp; in php_win32_cp_cli_do_setup()
526 if (!cp) { in php_win32_cp_cli_do_setup()
531 return cp; in php_win32_cp_cli_do_setup()
534 return cp; in php_win32_cp_cli_do_setup()
578 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()
H A Dinet.h23 PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
/PHP-8.1/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.1/ext/mbstring/libmbfl/filters/
H A Dutf7_helper.h22 static inline bool has_surrogate(uint16_t cp, bool is_surrogate) in has_surrogate() argument
24 return !is_surrogate && cp >= 0xD800 && cp <= 0xDBFF; in has_surrogate()
/PHP-8.1/ext/curl/
H A Dinterface.c1238 CURL *cp; in curl_clone_obj() local
1248 cp = curl_easy_duphandle(ch->cp); in curl_clone_obj()
1249 if (!cp) { in curl_clone_obj()
1254 clone_ch->cp = cp; in curl_clone_obj()
1854 CURL *cp; in PHP_FUNCTION() local
1863 if (!cp) { in PHP_FUNCTION()
1870 ch->cp = cp; in PHP_FUNCTION()
2248 CURL *cp; in PHP_FUNCTION() local
2259 cp = curl_easy_duphandle(ch->cp); in PHP_FUNCTION()
2260 if (!cp) { in PHP_FUNCTION()
[all …]
/PHP-8.1/.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.1/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.1/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.1/ext/mbstring/tests/
H A Dutf8_mobile_encodings.phpt91 $cp = pack('N', rand(1, 0x10FFFF));
92 if (isset($fromUnicode[$cp]))
94 …if (mb_convert_encoding($cp, $encoding, 'UTF-32BE') !== mb_convert_encoding($cp, 'UTF-8', 'UTF-32B…
95 die("Expected U+" . bin2hex($cp) . " to be the same in UTF-8 and " . $encoding);
116 foreach ($toUnicode as $char => $cp)
117 testValidString($char, $cp, $encoding, 'UCS-4BE', false);
118 foreach ($fromUnicode as $cp => $char)
119 testValidString($cp, $char, 'UCS-4BE', $encoding, false);
120 foreach ($invalidCodepoints as $cp => $_)
121 convertInvalidString($cp, '%', 'UCS-4BE', $encoding);
/PHP-8.1/ext/dba/
H A Dinstall_cdb.sh40 cp ../error.o .
49 cp cdb.h uint32.h "$prefix/include"
/PHP-8.1/ext/filter/tests/
H A D040.phpt8 ap[]=1&bp=test&cp=
14 var_dump(filter_has_var(INPUT_POST, "cp"));
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_env.c29 char *cp; in setenv() local
35 if ((cp = malloc(strlen(name) + strlen(value) + 2)) == 0) { in setenv()
38 sprintf(cp, "%s=%s", name, value); in setenv()
39 return putenv(cp); in setenv()

Completed in 77 milliseconds

123