| /PHP_5_4/ext/standard/ |
| H A D | crypt_sha256.c | 360 size_t key_len; local 390 key_len = strlen(key); 393 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t)); 394 key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__(uint32_t), key, key_len); 408 sha256_process_bytes(key, key_len, &ctx); 421 sha256_process_bytes(key, key_len, &alt_ctx); 427 sha256_process_bytes(key, key_len, &alt_ctx); 434 for (cnt = key_len; cnt > 32; cnt -= 32) { 441 for (cnt = key_len; cnt > 0; cnt >>= 1) { 445 sha256_process_bytes(key, key_len, [all...] |
| H A D | crypt_sha512.c | 393 size_t key_len; local 424 key_len = strlen(key); 427 char *tmp = (char *) alloca (key_len + __alignof__ (uint64_t)); 429 memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), key, key_len); 442 sha512_process_bytes(key, key_len, &ctx); 455 sha512_process_bytes(key, key_len, &alt_ctx); 461 sha512_process_bytes(key, key_len, &alt_ctx); 468 for (cnt = key_len; cnt > 64; cnt -= 64) { 475 for (cnt = key_len; cnt > 0; cnt >>= 1) { 479 sha512_process_bytes(key, key_len, [all...] |
| H A D | basic_functions.c | 3423 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ 3433 if (!strncmp(pe->key, "TZ", pe->key_len)) { 4047 pe.key_len = strlen(pe.key); 4050 if (pe.key_len < setting_len - 1) { 4059 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1); 4064 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */ 4094 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL); 4096 if (!strncmp(pe.key, "TZ", pe.key_len)) { [all...] |
| H A D | basic_functions.h | 248 int key_len; member in struct:__anon224
|
| H A D | http.c | 37 uint key_len; local 59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT; 62 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') { 64 key_len -= 1; 72 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) { 76 zend_unmangle_property_name(key, key_len-1, &tmp, (const char**)&key); 77 key_len = strlen(key); 87 ekey = php_raw_url_encode(key, key_len, &ekey_len); 89 ekey = php_url_encode(key, key_len, [all...] |
| H A D | var.c | 359 int key_len, tmp_len; local 360 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC); 361 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL); 857 uint key_len; local 862 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 875 php_var_serialize_string(buf, key, key_len - 1);
|
| H A D | streamsfuncs.c | 661 uint key_len; local 670 &key, &key_len, &num_ind, 0, NULL); 693 zend_hash_update(new_hash, key, key_len, (void *)elem, sizeof(zval *), (void **)&dest_elem);
|
| /PHP_5_4/ext/intl/collator/ |
| H A D | collator_sort.c | 552 int key_len = 0; local 599 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); 600 if(!key_len) { 604 key = emalloc(key_len); 605 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); 607 if(!key_len) { 610 RETURN_STRINGL((char *)key, key_len - 1, 0);
|
| /PHP_5_4/ext/dba/ |
| H A D | dba.c | 242 size_t key_len; \ 246 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 253 size_t key_len; \ 269 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 549 size_t key_len; local 555 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { 563 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) { 979 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { 1020 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) { 1035 int key_len; local [all...] |
| /PHP_5_4/ext/hash/ |
| H A D | hash.c | 208 int algo_len, data_len, key_len, i; local 215 &key, &key_len, &raw_output) == FAILURE) { 238 if (key_len > ops->block_size) { 240 ops->hash_update(context, (unsigned char *) key, key_len); 245 memcpy(K, key, key_len); 323 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local 329 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) { 340 key_len <= 0) { 361 if (key_len > ops->block_size) { 363 ops->hash_update(context, (unsigned char *) key, key_len); [all...] |
| /PHP_5_4/ext/json/ |
| H A D | json.c | 170 uint key_len; local 176 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 255 uint key_len; local 262 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 301 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
|
| /PHP_5_4/ext/mcrypt/ |
| H A D | mcrypt.c | 369 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \ 586 int key_len, iv_len; local 593 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) { 602 if (key_len == 0) { 606 key_s = emalloc(key_len); 607 memset(key_s, 0, key_len); 612 if (key_len > max_key_size) { 613 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size); 616 key_size = key_len; 618 memcpy(key_s, key, key_len); 1168 php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int data_len, char *mode, const char *iv, int iv_len, int argc, int dencrypt, zval* return_value TSRMLS_DC) argument 1281 int cipher_len, key_len, data_len, iv_len = 0; local 1297 int cipher_len, key_len, data_len, iv_len = 0; local 1313 int cipher_len, key_len, data_len, iv_len = 0; local 1329 int cipher_len, key_len, data_len, iv_len = 0; local 1345 int cipher_len, key_len, data_len, iv_len = 0; local 1361 int cipher_len, key_len, data_len, iv_len = 0; local [all...] |
| H A D | mcrypt_filter.c | 154 int encrypt = 1, iv_len, key_len, keyl, result; local 204 key_len = Z_STRLEN_PP(tmpzval); 217 if (keyl < key_len) { 218 key_len = keyl; 236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
|
| /PHP_5_4/ext/session/ |
| H A D | mod_files.c | 101 size_t key_len; local 106 key_len = strlen(key); 107 if (key_len <= data->dirdepth || 108 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { 122 memcpy(buf + n, key, key_len); 123 n += key_len;
|
| H A D | mod_user_class.c | 75 int key_len, val_len; local 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { 99 int key_len, val_len; local 103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAILURE) { 116 int key_len; local 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) {
|
| /PHP_5_4/ext/soap/ |
| H A D | php_sdl.c | 1803 uint key_len; local 1806 if (zend_hash_get_current_key_ex(ht, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) { 1807 WSDL_CACHE_PUT_INT(key_len, out); 1808 WSDL_CACHE_PUT_N(key, key_len, out); 2447 uint key_len; local 2482 if (zend_hash_get_current_key_ex(headers, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) { 2483 zend_hash_add(pheaders, key, key_len, (void*)&pheader, sizeof(sdlSoapBindingFunctionHeaderPtr), NULL); 2515 uint key_len; local 2543 if (zend_hash_get_current_key_ex(params, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) { 2544 zend_hash_add(pparams, key, key_len, (voi 2562 uint key_len; local 2611 uint key_len; local 2722 uint key_len; local 2956 uint key_len; local 3379 uint key_len; local 3387 zend_hash_get_current_key_ex(SOAP_GLOBAL(mem_cache), &key, &key_len, &idx, 0, &pos); local 3391 zend_hash_del(SOAP_GLOBAL(mem_cache), key, key_len); local [all...] |
| H A D | soap.c | 1405 int key_len; local 1413 key_len = Z_STRLEN_PP(tmp_function); 1414 key = emalloc(key_len + 1); 1415 zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len); 1417 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) { 1424 zend_hash_update(service->soap_functions.ft, key, key_len+1, &function_copy, sizeof(zval *), NULL); 1432 int key_len; local 1435 key_len = Z_STRLEN_P(function_name); 1436 key = emalloc(key_len + 1); 1437 zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len); [all...] |
| /PHP_5_4/ext/wddx/ |
| H A D | wddx.c | 507 uint key_len; local 531 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) { 534 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); 537 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); 538 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); 559 uint key_len; local 604 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL); 607 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); 609 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx); 610 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_C [all...] |
| /PHP_5_4/ext/phar/ |
| H A D | dirstream.c | 577 uint key_len; local 640 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL); 645 if (key_len > path_len && 661 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL); 666 if (key_len > path_len &&
|
| H A D | stream.c | 915 uint key_len, new_key_len; local 921 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL)) && 928 key_len > from_len && 932 new_key_len = key_len + to_len - from_len; 935 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); 955 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL)); 960 if (key_len >= from_len && 962 (key_len == from_len || IS_SLASH(str_key[from_len]))) { 964 new_key_len = key_len + to_len - from_len; 967 memcpy(new_str_key + to_len, str_key + from_len, key_len [all...] |
| /PHP_5_4/main/ |
| H A D | php_ini.c | 283 uint key_len; local 289 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1; 300 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1; 303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ 309 if (key && key_len > 0) { 311 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) { 312 key_len--; 313 key[key_len] [all...] |
| /PHP_5_4/Zend/ |
| H A D | zend_API.c | 1196 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ argument 1203 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL); 1207 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ argument 1214 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL); 1218 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ argument 1225 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL); 1229 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r) /* {{{ */ argument 1236 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL); 1240 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d) /* {{{ */ argument 1247 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (voi 1251 add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate) argument 1262 add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate) argument 1273 add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value) argument 1445 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate) argument 1456 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, void **dest, int duplicate) argument 1511 add_property_long_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument 1529 add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC) argument 1565 add_property_resource_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument 1583 add_property_double_ex(zval *arg, const char *key, uint key_len, double d TSRMLS_DC) argument 1601 add_property_string_ex(zval *arg, const char *key, uint key_len, const char *str, int duplicate TSRMLS_DC) argument 1619 add_property_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, int duplicate TSRMLS_DC) argument 1637 add_property_zval_ex(zval *arg, const char *key, uint key_len, zval *value TSRMLS_DC) argument [all...] |
| H A D | zend_API.h | 374 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n); 375 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len); 376 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b); 377 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r); 378 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d); 379 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate); 380 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate); 381 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value); 416 ZEND_API int add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate); 417 ZEND_API int add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, cons [all...] |
| H A D | zend_builtin_functions.c | 910 uint key_len; local 915 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); 990 uint key_len; local 1015 if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING) { 1016 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) { 1017 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name); 1077 uint key_len; local 1082 if (zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING) { 1088 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) { 1092 (len != key_len [all...] |
| /PHP_5_4/ext/reflection/ |
| H A D | php_reflection.c | 438 uint key_len; local 444 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos); 608 uint key_len; local 615 || zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING 616 || zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) 793 uint key_len; local 813 zend_hash_get_current_key_ex(static_variables, &key, &key_len, &num_index, 0, &pos); 3347 uint key_len; local 3352 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos);
|