Searched refs:key_len (Results 1 - 25 of 41) sorted by relevance

12

/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c553 int key_len = 0; local
600 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0);
601 if(!key_len) {
605 key = emalloc(key_len);
606 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len);
608 if(!key_len) {
611 RETURN_STRINGL((char *)key, key_len - 1, 0);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c101 int key_len; local
358 key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i].constant);
359 key = emalloc(key_len);
360 key_len = snprintf(key, key_len-1, "%d->%s", info[i].u.num, Z_STRVAL(op_array->literals[i].constant));
363 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i].constant);
364 key = emalloc(key_len);
372 key_len = Z_STRLEN(op_array->literals[i].constant)+1;
374 h = zend_hash_func(key, key_len);
378 zend_hash_quick_find(&hash, key, key_len,
[all...]
/PHP_TRUNK/ext/standard/
H A Dcrypt_sha256.c354 size_t key_len; local
384 key_len = strlen(key);
387 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t));
388 key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__(uint32_t), key, key_len);
402 sha256_process_bytes(key, key_len, &ctx);
415 sha256_process_bytes(key, key_len, &alt_ctx);
421 sha256_process_bytes(key, key_len, &alt_ctx);
428 for (cnt = key_len; cnt > 32; cnt -= 32) {
435 for (cnt = key_len; cnt > 0; cnt >>= 1) {
439 sha256_process_bytes(key, key_len,
[all...]
H A Dcrypt_sha512.c387 size_t key_len; local
418 key_len = strlen(key);
421 char *tmp = (char *) alloca (key_len + __alignof__ (uint64_t));
423 memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), key, key_len);
436 sha512_process_bytes(key, key_len, &ctx);
449 sha512_process_bytes(key, key_len, &alt_ctx);
455 sha512_process_bytes(key, key_len, &alt_ctx);
462 for (cnt = key_len; cnt > 64; cnt -= 64) {
469 for (cnt = key_len; cnt > 0; cnt >>= 1) {
473 sha512_process_bytes(key, key_len,
[all...]
H A Dhttp.c37 uint key_len; local
59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTENT;
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 TSRMLS_CC) != SUCCESS) {
76 zend_unmangle_property_name_ex(key, key_len, &tmp, (const char**)&key, &key_len);
86 ekey = php_raw_url_encode(key, key_len, &ekey_len);
88 ekey = php_url_encode(key, key_len,
[all...]
H A Dbasic_functions.h246 int key_len; member in struct:__anon3
H A Dvar.c359 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);
855 uint key_len; local
860 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
873 php_var_serialize_string(buf, key, key_len - 1);
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp550 int key_len; local
552 if (intl_charFromString(key, &key_char, &key_len,
593 int key_len; local
595 if (intl_charFromString(key, &key_char, &key_len,
/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c154 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);
H A Dmcrypt.c334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
545 int key_len, iv_len; local
552 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
561 if (key_len == 0) {
565 key_s = emalloc(key_len);
566 memset(key_s, 0, key_len);
571 if (key_len > max_key_size) {
572 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size);
575 key_size = key_len;
577 memcpy(key_s, key, key_len);
1236 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 dencrypt, zval* return_value TSRMLS_DC) argument
1300 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1316 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1333 int cipher_len, key_len, data_len, iv_len = 0; local
1349 int cipher_len, key_len, data_len, iv_len = 0; local
1365 int cipher_len, key_len, data_len, iv_len = 0; local
1381 int cipher_len, key_len, data_len, iv_len = 0; local
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.c551 uint key_len; local
614 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->manifest, &str_key, &key_len, &unused, 0, NULL);
617 if (key_len > path_len &&
631 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &str_key, &key_len, &unused, 0, NULL);
634 if (key_len > path_len &&
H A Dstream.c906 uint key_len, new_key_len; local
912 HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &str_key, &key_len, &unused, 0, NULL)) &&
917 key_len > from_len &&
921 new_key_len = key_len + to_len - from_len;
924 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len);
938 HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &str_key, &key_len, &unused, 0, NULL));
941 if (key_len >= from_len &&
943 (key_len == from_len || IS_SLASH(str_key[from_len]))) {
945 new_key_len = key_len + to_len - from_len;
948 memcpy(new_str_key + to_len, str_key + from_len, key_len
[all...]
/PHP_TRUNK/ext/session/
H A Dmod_user_class.c75 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) {
H A Dmod_files.c76 size_t key_len; local
81 key_len = strlen(key);
82 if (key_len <= data->dirdepth ||
83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) {
97 memcpy(buf + n, key, key_len);
98 n += key_len;
/PHP_TRUNK/ext/soap/
H A Dphp_sdl.c1803 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
2723 uint key_len; local
2957 uint key_len; local
3380 uint key_len; local
3388 zend_hash_get_current_key_ex(SOAP_GLOBAL(mem_cache), &key, &key_len, &idx, 0, &pos); local
3392 zend_hash_del(SOAP_GLOBAL(mem_cache), key, key_len); local
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c283 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_TRUNK/ext/dba/
H A Ddba.c247 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; local
567 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {
575 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) {
994 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) {
1035 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) {
1050 int key_len; local
[all...]
/PHP_TRUNK/ext/wddx/
H A Dwddx.c505 uint key_len; local
529 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) {
532 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
535 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
536 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC);
557 uint key_len; local
602 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL);
605 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC);
607 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
608 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_C
[all...]
/PHP_TRUNK/Zend/
H A Dzend_API.h379 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n);
380 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len);
381 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b);
382 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r);
383 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d);
384 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
385 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate);
386 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value);
421 ZEND_API int add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate);
422 ZEND_API int add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, cons
[all...]
H A Dzend_API.c1224 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ argument
1231 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1235 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ argument
1242 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1246 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ argument
1253 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1257 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r) /* {{{ */ argument
1264 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1268 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d) /* {{{ */ argument
1275 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (voi
1279 add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate) argument
1290 add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate) argument
1301 add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value) argument
1473 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate) argument
1484 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, void **dest, int duplicate) argument
1573 add_property_long_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument
1591 add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC) argument
1627 add_property_resource_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument
1645 add_property_double_ex(zval *arg, const char *key, uint key_len, double d TSRMLS_DC) argument
1663 add_property_string_ex(zval *arg, const char *key, uint key_len, const char *str, int duplicate TSRMLS_DC) argument
1681 add_property_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, int duplicate TSRMLS_DC) argument
1699 add_property_zval_ex(zval *arg, const char *key, uint key_len, zval *value TSRMLS_DC) argument
[all...]
H A Dzend_builtin_functions.c913 uint key_len; local
918 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos);
953 zend_hash_update(Z_ARRVAL_P(return_value), key, key_len, &prop_copy, sizeof(zval*), NULL); local
993 uint key_len, prop_len; local
1018 if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING) {
1019 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) {
1020 zend_unmangle_property_name_ex(key, key_len - 1, &class_name, &prop_name, (int*) &prop_len);
1087 uint key_len; local
1092 if (zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING) {
1098 zend_binary_strcasecmp(key, key_len
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c220 static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const int key_len) { argument
222 if (key_len > ops->block_size) {
225 ops->hash_update(context, key, key_len);
228 memcpy(K, key, key_len);
244 int algo_len, data_len, key_len; local
251 &key, &key_len, &raw_output) == FAILURE) {
273 php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len);
336 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local
342 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
353 key_len <
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c929 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC)
952 ZCG(key_len) = 0;
1021 ZCG(key_len) = 0;
1045 ZCG(key_len) = 0;
1051 *key_len = ZCG(key_len) = key_length;
1055 static inline char *accel_make_persistent_key(zend_file_handle *file_handle, int *key_len TSRMLS_DC)
1057 return accel_make_persistent_key_ex(file_handle, strlen(file_handle->filename), key_len TSRMLS_CC);
1310 key_length = ZCG(key_len);
1526 if (!ZCG(key_len)) {
[all...]
H A DZendAccelerator.h273 int key_len; member in struct:_zend_accel_globals
341 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC);
/PHP_TRUNK/ext/json/
H A Djson.c181 uint key_len; local
187 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
265 uint key_len; local
271 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
310 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);

Completed in 50 milliseconds

12