/PHP-5.6/ext/standard/ |
H A D | http.c | 37 uint key_len; in php_url_encode_hash_ex() local 59 …(key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXIST… in php_url_encode_hash_ex() 62 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') { in php_url_encode_hash_ex() 64 key_len -= 1; in php_url_encode_hash_ex() 72 if (zend_check_property_access(zobj, key, key_len TSRMLS_CC) != SUCCESS) { in php_url_encode_hash_ex() 76 zend_unmangle_property_name_ex(key, key_len, &tmp, (const char**)&key, &key_len); in php_url_encode_hash_ex() 86 ekey = php_raw_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex() 88 ekey = php_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex() 154 ekey = php_raw_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex() 156 ekey = php_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
|
H A D | crypt_sha256.c | 354 size_t key_len; in php_sha256_crypt_r() local 384 key_len = strlen(key); in php_sha256_crypt_r() 402 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 428 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r() 435 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r() 439 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r() 450 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r() 458 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r() 459 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r() 575 memset(p_bytes, '\0', key_len); in php_sha256_crypt_r() [all …]
|
H A D | crypt_sha512.c | 387 size_t key_len; in php_sha512_crypt_r() local 418 key_len = strlen(key); in php_sha512_crypt_r() 436 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 462 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r() 469 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r() 473 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r() 484 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r() 492 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r() 493 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r() 623 memset(p_bytes, '\0', key_len); in php_sha512_crypt_r() [all …]
|
H A D | var.c | 359 int key_len, tmp_len; in php_array_element_export() local 360 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC); in php_array_element_export() 361 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL); in php_array_element_export() 852 uint key_len; in php_var_serialize_intern() local 857 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in php_var_serialize_intern() 870 php_var_serialize_string(buf, key, key_len - 1); in php_var_serialize_intern()
|
H A D | basic_functions.h | 248 int key_len; member
|
/PHP-5.6/ext/session/ |
H A D | mod_user_class.c | 75 int key_len, val_len; in PHP_METHOD() local 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD() 99 int key_len, val_len; in PHP_METHOD() local 103 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAIL… in PHP_METHOD() 116 int key_len; in PHP_METHOD() local 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD()
|
H A D | mod_files.c | 76 size_t key_len; in ps_files_path_create() local 81 key_len = strlen(key); in ps_files_path_create() 82 if (!data || key_len <= data->dirdepth || in ps_files_path_create() 83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create() 97 memcpy(buf + n, key, key_len); in ps_files_path_create() 98 n += key_len; in ps_files_path_create()
|
/PHP-5.6/ext/mcrypt/ |
H A D | mcrypt.c | 566 int key_len, iv_len; in PHP_FUNCTION() local 582 if (key_len == 0) { in PHP_FUNCTION() 586 key_s = emalloc(key_len); in PHP_FUNCTION() 587 memset(key_s, 0, key_len); in PHP_FUNCTION() 592 if (key_len > max_key_size) { in PHP_FUNCTION() 596 key_size = key_len; in PHP_FUNCTION() 598 memcpy(key_s, key, key_len); in PHP_FUNCTION() 1371 int cipher_len, key_len, data_len, iv_len = 0; in PHP_FUNCTION() local 1387 int cipher_len, key_len, data_len, iv_len = 0; in PHP_FUNCTION() local 1403 int cipher_len, key_len, data_len, iv_len = 0; in PHP_FUNCTION() local [all …]
|
H A D | mcrypt_filter.c | 154 int encrypt = 1, iv_len, key_len, keyl, result; in php_mcrypt_filter_create() local 204 key_len = Z_STRLEN_PP(tmpzval); in php_mcrypt_filter_create() 217 if (keyl < key_len) { in php_mcrypt_filter_create() 218 key_len = keyl; in php_mcrypt_filter_create() 236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv); in php_mcrypt_filter_create()
|
/PHP-5.6/ext/intl/collator/ |
H A D | collator_sort.c | 553 int key_len = 0; in PHP_FUNCTION() local 600 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); in PHP_FUNCTION() 601 if(!key_len) { in PHP_FUNCTION() 605 key = emalloc(key_len); in PHP_FUNCTION() 606 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); in PHP_FUNCTION() 608 if(!key_len) { in PHP_FUNCTION() 611 RETURN_STRINGL((char *)key, key_len - 1, 0); in PHP_FUNCTION()
|
/PHP-5.6/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 101 int key_len; in optimizer_compact_literals() local 358 key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i].constant); in optimizer_compact_literals() 359 key = emalloc(key_len); in optimizer_compact_literals() 360 …key_len = snprintf(key, key_len-1, "%d->%s", info[i].u.num, Z_STRVAL(op_array->literals[i].constan… in optimizer_compact_literals() 363 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i].constant); in optimizer_compact_literals() 364 key = emalloc(key_len); in optimizer_compact_literals() 372 key_len = Z_STRLEN(op_array->literals[i].constant)+1; in optimizer_compact_literals() 374 h = zend_hash_func(key, key_len); in optimizer_compact_literals() 378 zend_hash_quick_find(&hash, key, key_len, h, (void**)&pos) == SUCCESS && in optimizer_compact_literals() 396 zend_hash_quick_add(&hash, key, key_len, h, (void**)&j, sizeof(int), NULL); in optimizer_compact_literals()
|
/PHP-5.6/main/ |
H A D | php_ini.c | 283 uint key_len; in php_ini_parser_cb() local 289 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; in php_ini_parser_cb() 300 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; in php_ini_parser_cb() 303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ in php_ini_parser_cb() 309 if (key && key_len > 0) { in php_ini_parser_cb() 311 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { in php_ini_parser_cb() 312 key_len--; in php_ini_parser_cb() 313 key[key_len] = 0; in php_ini_parser_cb() 323 key_len--; in php_ini_parser_cb() 327 if (zend_hash_find(target_hash, key, key_len + 1, (void **) &entry) == FAILURE) { in php_ini_parser_cb() [all …]
|
/PHP-5.6/ext/dba/ |
H A D | dba.c | 247 size_t key_len; \ 251 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 258 size_t key_len; \ 274 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 561 size_t key_len; in php_dba_update() local 567 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { in php_dba_update() 994 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { in PHP_FUNCTION() 1050 int key_len; in PHP_FUNCTION() local 1066 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1), 1); in PHP_FUNCTION() 1069 add_next_index_stringl(return_value, key, key_len, 1); in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/phar/ |
H A D | stream.c | 906 uint key_len, new_key_len; in phar_wrapper_rename() local 917 key_len > from_len && in phar_wrapper_rename() 921 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 924 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename() 941 if (key_len >= from_len && in phar_wrapper_rename() 943 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename() 945 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 948 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename() 961 if (key_len >= from_len && in phar_wrapper_rename() 963 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename() [all …]
|
H A D | dirstream.c | 552 uint key_len; in phar_wrapper_rmdir() local 615 …HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->manifest, &str_key, &key_len, &unused… in phar_wrapper_rmdir() 618 if (key_len > path_len && in phar_wrapper_rmdir() 632 …HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &str_key, &key_len, &un… in phar_wrapper_rmdir() 635 if (key_len > path_len && in phar_wrapper_rmdir()
|
/PHP-5.6/Zend/ |
H A D | zend_API.h | 380 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n); 381 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len); 382 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b); 383 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r); 384 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d); 387 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value); 435 ZEND_API int add_property_long_ex(zval *arg, const char *key, uint key_len, long l TSRMLS_DC); 436 ZEND_API int add_property_null_ex(zval *arg, const char *key, uint key_len TSRMLS_DC); 437 ZEND_API int add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC); 438 ZEND_API int add_property_resource_ex(zval *arg, const char *key, uint key_len, long r TSRMLS_DC); [all …]
|
H A D | zend_API.c | 1224 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ in add_assoc_long_ex() argument 1235 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ in add_assoc_null_ex() argument 1246 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ in add_assoc_bool_ex() argument 1612 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_long_ex() 1630 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_bool_ex() 1648 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_null_ex() 1666 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_resource_ex() 1684 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_double_ex() 1707 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_string_ex() 1729 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_stringl_ex() [all …]
|
H A D | zend_builtin_functions.c | 913 uint key_len; in add_class_vars() local 918 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); in add_class_vars() 953 zend_hash_update(Z_ARRVAL_P(return_value), key, key_len, &prop_copy, sizeof(zval*), NULL); in add_class_vars() 993 uint key_len, prop_len; in ZEND_FUNCTION() local 1018 …if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_S… in ZEND_FUNCTION() 1019 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) { in ZEND_FUNCTION() 1020 zend_unmangle_property_name_ex(key, key_len - 1, &class_name, &prop_name, (int*) &prop_len); in ZEND_FUNCTION() 1087 uint key_len; in ZEND_FUNCTION() local 1098 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) { in ZEND_FUNCTION() 1102 (len != key_len - 1 || in ZEND_FUNCTION() [all …]
|
/PHP-5.6/ext/hash/ |
H A D | hash.c | 223 if (key_len > ops->block_size) { in php_hash_hmac_prep_key() 226 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 229 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 245 int algo_len, data_len, key_len; in php_hash_do_hash_hmac() local 252 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac() 278 php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac() 341 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 358 key_len <= 0) { in PHP_FUNCTION() 379 if (key_len > ops->block_size) { in PHP_FUNCTION() 381 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/soap/ |
H A D | php_sdl.c | 1805 uint key_len; in sdl_serialize_key() local 1809 WSDL_CACHE_PUT_INT(key_len, out); in sdl_serialize_key() 1810 WSDL_CACHE_PUT_N(key, key_len, out); in sdl_serialize_key() 2449 uint key_len; in make_persistent_sdl_function_headers() local 2517 uint key_len; in make_persistent_sdl_parameters() local 2564 uint key_len; in make_persistent_sdl_function_faults() local 2613 uint key_len; in make_persistent_sdl_attribute() local 2725 uint key_len; in make_persistent_sdl_type() local 2959 uint key_len; in make_persistent_sdl() local 3382 uint key_len; in get_sdl() local [all …]
|
/PHP-5.6/ext/json/ |
H A D | json.c | 190 uint key_len; in json_determine_array_type() local 196 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_determine_array_type() 274 uint key_len; in json_encode_array() local 280 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_encode_array() 319 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC); in json_encode_array()
|
/PHP-5.6/ext/wddx/ |
H A D | wddx.c | 520 uint key_len; in php_wddx_serialize_object() local 538 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { in php_wddx_serialize_object() 541 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); in php_wddx_serialize_object() 544 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); in php_wddx_serialize_object() 545 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_object() 568 uint key_len; in php_wddx_serialize_array() local 613 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL); in php_wddx_serialize_array() 616 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); in php_wddx_serialize_array() 618 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); in php_wddx_serialize_array() 619 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_array()
|
/PHP-5.6/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 554 int key_len; in umsg_format_helper() local 556 if (intl_charFromString(key, &key_char, &key_len, in umsg_format_helper() 597 int key_len; in umsg_format_helper() local 599 if (intl_charFromString(key, &key_char, &key_len, in umsg_format_helper()
|
/PHP-5.6/ext/opcache/ |
H A D | ZendAccelerator.c | 972 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1041 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1065 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1071 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key_ex() 1075 static inline char *accel_make_persistent_key(zend_file_handle *file_handle, int *key_len TSRMLS_DC) in accel_make_persistent_key() 1330 key_length = ZCG(key_len); in compile_and_cache_file() 1529 if (!ZCG(key_len)) { 1536 key_length = ZCG(key_len); 1916 ZCG(key_len) = persistent_script->full_path_len; 2024 ZCG(key_len) = persistent_script->full_path_len; [all …]
|
H A D | ZendAccelerator.h | 280 int key_len; member 347 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSR…
|