Home
last modified time | relevance | path

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

/PHP-5.6/ext/opcache/
H A Dzend_accelerator_hash.c91 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_update()
101 && entry->key_length == key_length in zend_accel_hash_update()
102 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_update()
140 entry->key_length = key_length; in zend_accel_hash_update()
158 hash_value = zend_inline_hash_func(key, key_length); in zend_accel_hash_find()
167 && entry->key_length == key_length in zend_accel_hash_find()
168 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find()
201 && entry->key_length == key_length in zend_accel_hash_find_entry()
202 && !memcmp(entry->key, key, key_length)) { in zend_accel_hash_find_entry()
232 && entry->key_length == key_length in zend_accel_hash_unlink()
[all …]
H A Dzend_accelerator_hash.h50 zend_uint key_length; member
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 …_script_persist_calc(zend_persistent_script *script, char *key, unsigned int key_length TSRMLS_DC);
27 …ccel_script_persist(zend_persistent_script *script, char **key, unsigned int key_length TSRMLS_DC);
H A DZendAccelerator.c951 int key_length; in accel_make_persistent_key_ex() local
1040 if ((size_t)key_length >= sizeof(ZCG(key))) { in accel_make_persistent_key_ex()
1060 ZCG(key)[key_length] = '\0'; in accel_make_persistent_key_ex()
1063 key_length = path_length; in accel_make_persistent_key_ex()
1071 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key_ex()
1144 memcpy(new_key, key, key_length + 1); in zend_accel_add_key()
1330 key_length = ZCG(key_len); in compile_and_cache_file()
1489 int key_length; local
1536 key_length = ZCG(key_len);
1893 int key_length; local
[all …]
H A Dzend_persist_calc.c362 …t_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.c320 int key_length; in filename_is_in_cache() local
336 if ((key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC)) != NULL) { in filename_is_in_cache()
337 persistent_script = zend_accel_hash_find(&ZCSG(hash), key, key_length + 1); in filename_is_in_cache()
546 …zend_hash_update(return_value->value.ht, cache_entry->key, cache_entry->key_length, &persistent_sc… in accelerator_get_scripts()
H A Dzend_persist.c705 …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-5.6/sapi/apache/
H A Dmod_php5.c76 uint key_length; member
569 …zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_di… in php_apache_alter_ini_entries()
726 per_dir_entry->key = (char *) malloc(tmp.key_length+1); in copy_per_dir_entry()
727 memcpy(per_dir_entry->key, tmp.key, tmp.key_length); in copy_per_dir_entry()
728 per_dir_entry->key[per_dir_entry->key_length] = 0; in copy_per_dir_entry()
815 per_dir_entry.key_length = strlen(arg1); in php_apache_value_handler_ex()
818 per_dir_entry.key = (char *) malloc(per_dir_entry.key_length+1); in php_apache_value_handler_ex()
819 memcpy(per_dir_entry.key, arg1, per_dir_entry.key_length); in php_apache_value_handler_ex()
820 per_dir_entry.key[per_dir_entry.key_length] = 0; in php_apache_value_handler_ex()
826 …zend_hash_update(conf, per_dir_entry.key, per_dir_entry.key_length, &per_dir_entry, sizeof(php_per… in php_apache_value_handler_ex()
/PHP-5.6/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_N…
272 key_length--; \
273 if (php_get_session_var(key, key_length, &struc TSRMLS_CC) == SUCCESS) { \
H A Dsession.c897 if (key_length > PS_BIN_MAX) continue; in PS_SERIALIZER_ENCODE_FUNC()
898 smart_str_appendc(&buf, (unsigned char) key_length); in PS_SERIALIZER_ENCODE_FUNC()
899 smart_str_appendl(&buf, key, key_length); in PS_SERIALIZER_ENCODE_FUNC()
902 if (key_length > PS_BIN_MAX) continue;
903 smart_str_appendc(&buf, (unsigned char) (key_length & PS_BIN_UNDEF));
904 smart_str_appendl(&buf, key, key_length);
989 smart_str_appendl(&buf, key, key_length);
990 if (memchr(key, PS_DELIMITER, key_length) || memchr(key, PS_UNDEF_MARKER, key_length)) {
1000 smart_str_appendl(&buf, key, key_length);
/PHP-5.6/sapi/apache_hooks/
H A Dmod_php5.c100 uint key_length; member
619 …zend_alter_ini_entry(per_dir_entry->key, per_dir_entry->key_length+1, per_dir_entry->value, per_di… in php_apache_alter_ini_entries()
779 per_dir_entry->key = (char *) malloc(tmp.key_length+1); in copy_per_dir_entry()
780 memcpy(per_dir_entry->key, tmp.key, tmp.key_length); in copy_per_dir_entry()
781 per_dir_entry->key[per_dir_entry->key_length] = 0; in copy_per_dir_entry()
913 per_dir_entry.key_length = strlen(arg1); in php_apache_value_handler_ex()
916 per_dir_entry.key = (char *) malloc(per_dir_entry.key_length+1); in php_apache_value_handler_ex()
917 memcpy(per_dir_entry.key, arg1, per_dir_entry.key_length); in php_apache_value_handler_ex()
918 per_dir_entry.key[per_dir_entry.key_length] = 0; in php_apache_value_handler_ex()
924 …zend_hash_update(conf, per_dir_entry.key, per_dir_entry.key_length, &per_dir_entry, sizeof(php_per… in php_apache_value_handler_ex()
/PHP-5.6/ext/pcntl/
H A Dpcntl.c753 uint key_length; in PHP_FUNCTION() local
792 …switch (return_val = zend_hash_get_current_key_ex(envs_hash, &key, &key_length, &key_num, 0, NULL)… in PHP_FUNCTION()
796 key_length = strlen(key); in PHP_FUNCTION()
806 pair_length = Z_STRLEN_PP(element) + key_length + 2; in PHP_FUNCTION()
808 strlcpy(*pair, key, key_length); in PHP_FUNCTION()
/PHP-5.6/ext/wddx/
H A Dwddx.c274 php_wddx_serialize_var(packet, *struc, key, key_length TSRMLS_CC); in PS_SERIALIZER_ENCODE_FUNC()
297 uint key_length; in PS_SERIALIZER_DECODE_FUNC() local
317 hash_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(retval), &key, &key_length, &idx, 0, NULL); in PS_SERIALIZER_DECODE_FUNC()
321 key_length = slprintf(tmp, sizeof(tmp), "%ld", idx) + 1; in PS_SERIALIZER_DECODE_FUNC()
325 php_set_session_var(key, key_length-1, *ent, NULL TSRMLS_CC); in PS_SERIALIZER_DECODE_FUNC()
/PHP-5.6/ext/openssl/
H A Dopenssl.c265 ZEND_ARG_INFO(0, key_length)
4046 long key_length = 0, iterations = 0; in PHP_FUNCTION() local
4057 &key_length, &iterations, in PHP_FUNCTION()
4062 if (key_length <= 0 || key_length > INT_MAX) { in PHP_FUNCTION()
4077 out_buffer = emalloc(key_length + 1); in PHP_FUNCTION()
4078 out_buffer[key_length] = '\0'; in PHP_FUNCTION()
4080 …rd, password_len, (unsigned char *)salt, salt_len, iterations, digest, key_length, out_buffer) == … in PHP_FUNCTION()
4081 RETVAL_STRINGL((char *)out_buffer, key_length, 0); in PHP_FUNCTION()

Completed in 68 milliseconds