Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 25 of 29) sorted by relevance

12

/PHP-5.3/ext/standard/
H A Dhttp.c35 int arg_sep_len, key_len, ekey_len, key_type, newprefix_len; in php_url_encode_hash_ex() local
57 …(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()
60 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') { in php_url_encode_hash_ex()
62 key_len -= 1; in php_url_encode_hash_ex()
70 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) { in php_url_encode_hash_ex()
74 zend_unmangle_property_name(key, key_len-1, &tmp, &key); in php_url_encode_hash_ex()
75 key_len = strlen(key); in php_url_encode_hash_ex()
84 ekey = php_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
148 ekey = php_url_encode(key, key_len, &ekey_len); in php_url_encode_hash_ex()
H A Dcrypt_sha256.c360 size_t key_len; in php_sha256_crypt_r() local
390 key_len = strlen(key); in php_sha256_crypt_r()
408 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
434 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r()
441 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r()
445 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
456 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r()
464 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r()
465 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
581 memset(p_bytes, '\0', key_len); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c393 size_t key_len; in php_sha512_crypt_r() local
424 key_len = strlen(key); in php_sha512_crypt_r()
442 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r()
468 for (cnt = key_len; cnt > 64; cnt -= 64) { in php_sha512_crypt_r()
475 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha512_crypt_r()
479 sha512_process_bytes(key, key_len, &ctx); in php_sha512_crypt_r()
490 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha512_crypt_r()
498 cp = p_bytes = alloca(key_len); in php_sha512_crypt_r()
499 for (cnt = key_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
629 memset(p_bytes, '\0', key_len); in php_sha512_crypt_r()
[all …]
H A Dvar.c362 int key_len, tmp_len; in php_array_element_export() local
363 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC); in php_array_element_export()
364 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL); in php_array_element_export()
831 uint key_len; in php_var_serialize_intern() local
836 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in php_var_serialize_intern()
849 php_var_serialize_string(buf, key, key_len - 1); in php_var_serialize_intern()
H A Dbasic_functions.h243 int key_len; member
H A Dbasic_functions.c3448 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3458 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
4079 pe.key_len = strlen(pe.key);
4082 if (pe.key_len < setting_len - 1) {
4093 if (zend_hash_exists(&BG(sm_protected_env_vars), pe.key, pe.key_len)) {
4124 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1);
4129 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4159 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);
4161 if (!strncmp(pe.key, "TZ", pe.key_len)) {
/PHP-5.3/ext/mcrypt/
H A Dmcrypt.c586 int key_len, iv_len; in PHP_FUNCTION() local
602 if (key_len == 0) { in PHP_FUNCTION()
606 key_s = emalloc(key_len); in PHP_FUNCTION()
607 memset(key_s, 0, key_len); in PHP_FUNCTION()
612 if (key_len > max_key_size) { in PHP_FUNCTION()
616 key_size = key_len; in PHP_FUNCTION()
618 memcpy(key_s, key, key_len); in PHP_FUNCTION()
1188 if (key_len > max_key_length) { in php_mcrypt_do_crypt()
1193 use_key_length = key_len; in php_mcrypt_do_crypt()
1205 if (key_length_sizes[i] >= key_len && in php_mcrypt_do_crypt()
[all …]
H A Dmcrypt_filter.c154 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.3/ext/intl/collator/
H A Dcollator_sort.c552 int key_len = 0; in PHP_FUNCTION() local
599 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); in PHP_FUNCTION()
600 if(!key_len) { in PHP_FUNCTION()
604 key = emalloc(key_len); in PHP_FUNCTION()
605 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); in PHP_FUNCTION()
607 if(!key_len) { in PHP_FUNCTION()
610 RETURN_STRINGL((char *)key, key_len - 1, 0); in PHP_FUNCTION()
/PHP-5.3/main/
H A Dphp_ini.c283 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.3/ext/session/
H A Dmod_files.c101 size_t key_len; in ps_files_path_create() local
106 key_len = strlen(key); in ps_files_path_create()
107 if (key_len <= data->dirdepth || in ps_files_path_create()
108 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create()
122 memcpy(buf + n, key, key_len); in ps_files_path_create()
123 n += key_len; in ps_files_path_create()
/PHP-5.3/ext/dba/
H A Ddba.c241 size_t key_len; \
245 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
252 size_t key_len; \
268 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
543 size_t key_len; in php_dba_update() local
549 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { in php_dba_update()
984 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { in PHP_FUNCTION()
1043 int key_len; in PHP_FUNCTION() local
1059 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1), 1); in PHP_FUNCTION()
1062 add_next_index_stringl(return_value, key, key_len, 1); in PHP_FUNCTION()
[all …]
/PHP-5.3/Zend/
H A Dzend_API.h362 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n);
363 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len);
364 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b);
365 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r);
366 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d);
369 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value);
415 ZEND_API int add_property_long_ex(zval *arg, const char *key, uint key_len, long l TSRMLS_DC);
416 ZEND_API int add_property_null_ex(zval *arg, const char *key, uint key_len TSRMLS_DC);
417 ZEND_API int add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC);
418 ZEND_API int add_property_resource_ex(zval *arg, const char *key, uint key_len, long r TSRMLS_DC);
[all …]
H A Dzend_API.c1117 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ in add_assoc_long_ex() argument
1128 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ in add_assoc_null_ex() argument
1139 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ in add_assoc_bool_ex() argument
1441 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_long_ex()
1459 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_bool_ex()
1477 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_null_ex()
1495 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_resource_ex()
1513 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_double_ex()
1531 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_string_ex()
1549 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_stringl_ex()
[all …]
H A Dzend_builtin_functions.c885 uint key_len; in add_class_vars() local
892 zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos); in add_class_vars()
895 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); in add_class_vars()
957 uint key_len; in ZEND_FUNCTION() local
982 …if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_S… in ZEND_FUNCTION()
983 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) { in ZEND_FUNCTION()
984 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); in ZEND_FUNCTION()
1037 uint key_len; in ZEND_FUNCTION() local
1044 …zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY… in ZEND_FUNCTION()
1045 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) { in ZEND_FUNCTION()
/PHP-5.3/ext/phar/
H A Dstream.c915 uint key_len, new_key_len; in phar_wrapper_rename() local
928 key_len > from_len && in phar_wrapper_rename()
932 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename()
935 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename()
960 if (key_len >= from_len && in phar_wrapper_rename()
962 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename()
964 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename()
967 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename()
988 if (key_len >= from_len && in phar_wrapper_rename()
990 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename()
[all …]
H A Ddirstream.c577 uint key_len; in phar_wrapper_rmdir() local
640 …HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0,… in phar_wrapper_rmdir()
645 if (key_len > path_len && in phar_wrapper_rmdir()
661 …HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused… in phar_wrapper_rmdir()
666 if (key_len > path_len && in phar_wrapper_rmdir()
/PHP-5.3/ext/hash/
H A Dhash.c200 int algo_len, data_len, key_len, i; in php_hash_do_hash_hmac() local
207 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac()
230 if (key_len > ops->block_size) { in php_hash_do_hash_hmac()
232 ops->hash_update(context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac()
237 memcpy(K, key, key_len); in php_hash_do_hash_hmac()
315 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
321 …if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == F… in PHP_FUNCTION()
332 key_len <= 0) { in PHP_FUNCTION()
353 if (key_len > ops->block_size) { in PHP_FUNCTION()
355 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION()
[all …]
/PHP-5.3/ext/json/
H A Djson.c143 uint key_len; in json_determine_array_type() local
149 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_determine_array_type()
201 uint key_len; in json_encode_array() local
208 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_encode_array()
242 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC); in json_encode_array()
/PHP-5.3/ext/soap/
H A Dphp_sdl.c1803 uint key_len; in sdl_serialize_key() local
1807 WSDL_CACHE_PUT_INT(key_len, out); in sdl_serialize_key()
1808 WSDL_CACHE_PUT_N(key, key_len, out); in sdl_serialize_key()
2447 uint key_len; in make_persistent_sdl_function_headers() local
2515 uint key_len; in make_persistent_sdl_parameters() local
2562 uint key_len; in make_persistent_sdl_function_faults() local
2611 uint key_len; in make_persistent_sdl_attribute() local
2722 uint key_len; in make_persistent_sdl_type() local
2956 uint key_len; in make_persistent_sdl() local
3379 uint key_len; in get_sdl() local
[all …]
H A Dsoap.c1538 int key_len; in PHP_METHOD() local
1546 key_len = Z_STRLEN_PP(tmp_function); in PHP_METHOD()
1547 key = emalloc(key_len + 1); in PHP_METHOD()
1548 zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len); in PHP_METHOD()
1550 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) { in PHP_METHOD()
1565 int key_len; in PHP_METHOD() local
1568 key_len = Z_STRLEN_P(function_name); in PHP_METHOD()
1569 key = emalloc(key_len + 1); in PHP_METHOD()
1570 zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len); in PHP_METHOD()
1572 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) { in PHP_METHOD()
[all …]
/PHP-5.3/ext/wddx/
H A Dwddx.c507 uint key_len; in php_wddx_serialize_object() local
531 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { in php_wddx_serialize_object()
534 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); in php_wddx_serialize_object()
537 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); in php_wddx_serialize_object()
538 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_object()
559 uint key_len; in php_wddx_serialize_array() local
604 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL); in php_wddx_serialize_array()
607 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); in php_wddx_serialize_array()
609 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); in php_wddx_serialize_array()
610 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_array()
/PHP-5.3/ext/reflection/
H A Dphp_reflection.c415 uint key_len; in _class_string() local
421 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos); in _class_string()
585 uint key_len; in _class_string() local
593 || zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) in _class_string()
768 uint key_len; in _function_closure_string() local
788 zend_hash_get_current_key_ex(static_variables, &key, &key_len, &num_index, 0, &pos); in _function_closure_string()
3097 uint key_len; in ZEND_METHOD() local
3105 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); in ZEND_METHOD()
3220 uint key_len; in ZEND_METHOD() local
3224 zend_hash_get_current_key_ex(ht_list[i], &key, &key_len, &num_index, 0, &pos); in ZEND_METHOD()
[all …]
/PHP-5.3/ext/sockets/
H A Dsockets.c745 uint key_len; local
760 … switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) {
762 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
/PHP-5.3/ext/zip/
H A Dphp_zip.c1020 uint key_len; in php_zip_get_properties() local
1033 zend_hash_get_current_key_ex(obj->prop_handler, &key, &key_len, &num_key, 0, &pos); in php_zip_get_properties()
1039 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL); in php_zip_get_properties()

Completed in 382 milliseconds

12