Searched refs:key_length (Results 1 - 14 of 14) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_hash.c74 zend_accel_hash_entry* zend_accel_hash_update(zend_accel_hash *accel_hash, char *key, zend_uint key_length, zend_bool indirect, void *data) argument
88 hash_value = zend_inline_hash_func(key, key_length);
95 && entry->key_length == key_length
96 && !memcmp(entry->key, key, key_length)) {
134 entry->key_length = key_length;
143 void* zend_accel_hash_find(zend_accel_hash *accel_hash, char *key, zend_uint key_length) argument
149 hash_value = zend_inline_hash_func(key, key_length);
155 && entry->key_length
171 zend_accel_hash_find_entry(zend_accel_hash *accel_hash, char *key, zend_uint key_length) argument
196 zend_accel_hash_unlink(zend_accel_hash *accel_hash, char *key, zend_uint key_length) argument
[all...]
H A Dzend_accelerator_hash.h50 zend_uint key_length; member in struct:_zend_accel_hash_entry
70 zend_uint key_length,
77 zend_uint key_length);
82 zend_uint key_length);
87 zend_uint key_length);
H A Dzend_persist.h26 uint zend_accel_script_persist_calc(zend_persistent_script *script, char *key, unsigned int key_length TSRMLS_DC);
27 zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, char **key, unsigned int key_length TSRMLS_DC);
H A DZendAccelerator.c931 int key_length; local
1010 key_length = cwd_len + path_length + include_path_len + 2;
1012 key_length += parent_script_len + 1;
1020 if ((size_t)key_length >= sizeof(ZCG(key))) {
1040 ZCG(key)[key_length] = '\0';
1043 key_length = path_length;
1044 if ((size_t)key_length >= sizeof(ZCG(key))) {
1048 memcpy(ZCG(key), file_handle->filename, key_length + 1); local
1051 *key_len = ZCG(key_len) = key_length;
1114 static void zend_accel_add_key(char *key, unsigned int key_length, zend_accel_hash_entr argument
1135 cache_script_in_shared_memory(zend_persistent_script *new_persistent_script, char *key, unsigned int key_length, int *from_shared_memory TSRMLS_DC) argument
1292 compile_and_cache_file(zend_file_handle *file_handle, int type, char *key, unsigned int key_length, zend_op_array **op_array_p, int *from_shared_memory TSRMLS_DC) argument
1486 int key_length; local
1846 int key_length; local
2016 int key_length; local
[all...]
H A Dzend_persist_calc.c362 uint zend_accel_script_persist_calc(zend_persistent_script *new_persistent_script, char *key, unsigned int key_length TSRMLS_DC)
369 ADD_DUP_SIZE(key, key_length + 1);
H A Dzend_accelerator_module.c316 int key_length; local
331 if ((key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC)) != NULL) {
332 persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1);
547 zend_hash_update(return_value->value.ht, cache_entry->key, cache_entry->key_length, &persistent_script_report, sizeof(zval *), NULL);
H A Dzend_persist.c705 zend_persistent_script *zend_accel_script_persist(zend_persistent_script *script, char **key, unsigned int key_length TSRMLS_DC)
711 *key = zend_accel_memdup(*key, key_length + 1);
/PHP_TRUNK/ext/pcntl/
H A Dpcntl.c753 uint key_length; local
792 switch (return_val = zend_hash_get_current_key_ex(envs_hash, &key, &key_length, &key_num, 0, NULL)) {
796 key_length = strlen(key);
806 pair_length = Z_STRLEN_PP(element) + key_length + 2;
808 strlcpy(*pair, key, key_length);
/PHP_TRUNK/ext/session/
H A Dphp_session.h257 uint key_length; \
266 (key_type = zend_hash_get_current_key_ex(_ht, &key, &key_length, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTENT; \
272 key_length--; \
273 if (php_get_session_var(key, key_length, &struc TSRMLS_CC) == SUCCESS) { \
H A Dsession.c912 if (key_length > PS_BIN_MAX) continue;
913 smart_str_appendc(&buf, (unsigned char) key_length);
914 smart_str_appendl(&buf, key, key_length);
917 if (key_length > PS_BIN_MAX) continue;
918 smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF));
919 smart_str_appendl(&buf, key, key_length);
995 smart_str_appendl(&buf, key, key_length);
996 if (memchr(key, PS_DELIMITER, key_length) || memchr(key, PS_UNDEF_MARKER, key_length)) {
1006 smart_str_appendl(&buf, key, key_length);
[all...]
/PHP_TRUNK/sapi/apache/
H A Dmod_php5.c76 uint key_length; member in struct:_php_per_dir_entry
569 zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_dir_entry->value_length, per_dir_entry->type, per_dir_entry->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE);
726 per_dir_entry->key = (char *) malloc(tmp.key_length+1);
727 memcpy(per_dir_entry->key, tmp.key, tmp.key_length);
728 per_dir_entry->key[per_dir_entry->key_length] = 0;
815 per_dir_entry.key_length = strlen(arg1);
818 per_dir_entry.key = (char *) malloc(per_dir_entry.key_length+1);
819 memcpy(per_dir_entry.key, arg1, per_dir_entry.key_length);
820 per_dir_entry.key[per_dir_entry.key_length] = 0;
826 zend_hash_update(conf, per_dir_entry.key, per_dir_entry.key_length,
[all...]
/PHP_TRUNK/sapi/apache_hooks/
H A Dmod_php5.c100 uint key_length; member in struct:_php_per_dir_entry
619 zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_dir_entry->value_length, per_dir_entry->type, PHP_INI_STAGE_ACTIVATE);
779 per_dir_entry->key = (char *) malloc(tmp.key_length+1);
780 memcpy(per_dir_entry->key, tmp.key, tmp.key_length);
781 per_dir_entry->key[per_dir_entry->key_length] = 0;
913 per_dir_entry.key_length = strlen(arg1);
916 per_dir_entry.key = (char *) malloc(per_dir_entry.key_length+1);
917 memcpy(per_dir_entry.key, arg1, per_dir_entry.key_length);
918 per_dir_entry.key[per_dir_entry.key_length] = 0;
924 zend_hash_update(conf, per_dir_entry.key, per_dir_entry.key_length,
[all...]
/PHP_TRUNK/ext/wddx/
H A Dwddx.c273 php_wddx_serialize_var(packet, *struc, key, key_length TSRMLS_CC);
296 uint key_length; local
313 hash_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(retval), &key, &key_length, &idx, 0, NULL);
317 key_length = slprintf(tmp, sizeof(tmp), "%ld", idx) + 1;
321 php_set_session_var(key, key_length-1, *ent, NULL TSRMLS_CC);
/PHP_TRUNK/ext/openssl/
H A Dopenssl.c265 ZEND_ARG_INFO(0, key_length)
3954 /* {{{ proto string openssl_pbkdf2(string password, string salt, long key_length, long iterations [, string digest_method = "sha1"])
3958 long key_length = 0, iterations = 0; local
3969 &key_length, &iterations,
3974 if (key_length <= 0) {
3989 out_buffer = emalloc(key_length + 1);
3990 out_buffer[key_length] = '\0';
3992 if (PKCS5_PBKDF2_HMAC(password, password_len, (unsigned char *)salt, salt_len, iterations, digest, key_length, out_buffer) == 1) {
3993 RETVAL_STRINGL((char *)out_buffer, key_length, 0);

Completed in 52 milliseconds