/PHP-5.5/Zend/ |
H A D | zend_API.c | 1225 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ in add_assoc_long_ex() argument 1236 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ in add_assoc_null_ex() argument 1247 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ in add_assoc_bool_ex() argument 1583 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_long_ex() 1601 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_bool_ex() 1619 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_null_ex() 1637 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_resource_ex() 1655 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_double_ex() 1673 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_string_ex() 1691 ZVAL_STRINGL(z_key, key, key_len-1, 1); in add_property_stringl_ex() [all …]
|
H A D | zend_API.h | 376 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n); 377 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len); 378 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b); 379 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r); 380 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d); 383 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value); 431 ZEND_API int add_property_long_ex(zval *arg, const char *key, uint key_len, long l TSRMLS_DC); 432 ZEND_API int add_property_null_ex(zval *arg, const char *key, uint key_len TSRMLS_DC); 433 ZEND_API int add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC); 434 ZEND_API int add_property_resource_ex(zval *arg, const char *key, uint key_len, long r TSRMLS_DC); [all …]
|
H A D | zend_builtin_functions.c | 910 uint key_len; in add_class_vars() local 915 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); in add_class_vars() 990 uint key_len, prop_len; in ZEND_FUNCTION() local 1015 …if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_S… in ZEND_FUNCTION() 1016 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) { in ZEND_FUNCTION() 1017 zend_unmangle_property_name_ex(key, key_len - 1, &class_name, &prop_name, (int*) &prop_len); in ZEND_FUNCTION() 1077 uint key_len; in ZEND_FUNCTION() local 1082 …if (zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH… in ZEND_FUNCTION() 1088 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) { in ZEND_FUNCTION() 1092 (len != key_len - 1 || in ZEND_FUNCTION() [all …]
|
/PHP-5.5/ext/dba/ |
H A D | dba.c | 247 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; in php_dba_update() local 567 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { in php_dba_update() 994 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { in PHP_FUNCTION() 1050 int key_len; in PHP_FUNCTION() local 1066 add_next_index_stringl(return_value, name+1, key_len - (name - key + 1), 1); in PHP_FUNCTION() 1069 add_next_index_stringl(return_value, key, key_len, 1); in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/hash/ |
H A D | hash.c | 223 if (key_len > ops->block_size) { in php_hash_hmac_prep_key() 226 ops->hash_update(context, key, key_len); in php_hash_hmac_prep_key() 229 memcpy(K, key, key_len); in php_hash_hmac_prep_key() 245 int algo_len, data_len, key_len; in php_hash_do_hash_hmac() local 252 &key, &key_len, &raw_output) == FAILURE) { in php_hash_do_hash_hmac() 278 php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len); in php_hash_do_hash_hmac() 341 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); in PHP_FUNCTION() local 358 key_len <= 0) { in PHP_FUNCTION() 379 if (key_len > ops->block_size) { in PHP_FUNCTION() 381 ops->hash_update(context, (unsigned char *) key, key_len); in PHP_FUNCTION() [all …]
|
/PHP-5.5/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 146 int key_len, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local 152 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
|
/PHP-5.5/ext/intl/collator/ |
H A D | collator_sort.c | 553 int key_len = 0; in PHP_FUNCTION() local 600 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); in PHP_FUNCTION() 601 if(!key_len) { in PHP_FUNCTION() 605 key = emalloc(key_len); in PHP_FUNCTION() 606 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); in PHP_FUNCTION() 608 if(!key_len) { in PHP_FUNCTION() 611 RETURN_STRINGL((char *)key, key_len - 1, 0); in PHP_FUNCTION()
|
/PHP-5.5/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 550 int key_len; in umsg_format_helper() local 552 if (intl_charFromString(key, &key_char, &key_len, in umsg_format_helper() 593 int key_len; in umsg_format_helper() local 595 if (intl_charFromString(key, &key_char, &key_len, in umsg_format_helper()
|
/PHP-5.5/ext/json/ |
H A D | json.c | 181 uint key_len; in json_determine_array_type() local 187 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_determine_array_type() 265 uint key_len; in json_encode_array() local 271 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); in json_encode_array() 310 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC); in json_encode_array()
|
/PHP-5.5/ext/mcrypt/ |
H A D | mcrypt.c | 597 int key_len, iv_len; in PHP_FUNCTION() local 613 if (key_len == 0) { in PHP_FUNCTION() 617 key_s = emalloc(key_len); in PHP_FUNCTION() 618 memset(key_s, 0, key_len); in PHP_FUNCTION() 623 if (key_len > max_key_size) { in PHP_FUNCTION() 627 key_size = key_len; in PHP_FUNCTION() 629 memcpy(key_s, key, key_len); in PHP_FUNCTION() 1211 if (key_len > max_key_length) { in php_mcrypt_do_crypt() 1216 use_key_length = key_len; in php_mcrypt_do_crypt() 1228 if (key_length_sizes[i] >= key_len && in php_mcrypt_do_crypt() [all …]
|
H A D | mcrypt_filter.c | 154 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.5/ext/opcache/ |
H A D | ZendAccelerator.c | 943 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1012 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1036 ZCG(key_len) = 0; in accel_make_persistent_key_ex() 1042 *key_len = ZCG(key_len) = key_length; in accel_make_persistent_key_ex() 1046 static inline char *accel_make_persistent_key(zend_file_handle *file_handle, int *key_len TSRMLS_DC) in accel_make_persistent_key() 1297 key_length = ZCG(key_len); in compile_and_cache_file() 1496 if (!ZCG(key_len)) { 1503 key_length = ZCG(key_len); 1839 ZCG(key_len) = persistent_script->full_path_len; 1947 ZCG(key_len) = persistent_script->full_path_len; [all …]
|
H A D | ZendAccelerator.h | 272 int key_len; member 338 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSR…
|
/PHP-5.5/ext/phar/ |
H A D | dirstream.c | 574 uint key_len; in phar_wrapper_rmdir() local 637 …HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0,… in phar_wrapper_rmdir() 642 if (key_len > path_len && in phar_wrapper_rmdir() 658 …HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused… in phar_wrapper_rmdir() 663 if (key_len > path_len && in phar_wrapper_rmdir()
|
H A D | phar_object.c | 3033 int key_len = 0; in PHP_METHOD() local 3043 …_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &algo, &key, &key_len) != SUCCESS) { in PHP_METHOD() 3065 PHAR_G(openssl_privatekey_len) = key_len; in PHP_METHOD()
|
H A D | stream.c | 915 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() 956 if (key_len >= from_len && in phar_wrapper_rename() 958 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename() 960 new_key_len = key_len + to_len - from_len; in phar_wrapper_rename() 963 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len); in phar_wrapper_rename() 980 if (key_len >= from_len && in phar_wrapper_rename() 982 (key_len == from_len || IS_SLASH(str_key[from_len]))) { in phar_wrapper_rename() [all …]
|
H A D | util.c | 41 …penssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature… 1414 …penssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature… in phar_call_openssl_signverify() argument 1426 ZVAL_STRINGL(zkey, key, key_len, 1); in phar_call_openssl_signverify()
|
/PHP-5.5/ext/reflection/ |
H A D | php_reflection.c | 438 uint key_len; in _class_string() local 444 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos); in _class_string() 608 uint key_len; in _class_string() local 615 …|| zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_… in _class_string() 616 || zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) in _class_string() 793 uint key_len; in _function_closure_string() local 813 zend_hash_get_current_key_ex(static_variables, &key, &key_len, &num_index, 0, &pos); in _function_closure_string() 3355 uint key_len; in add_class_vars() local 3360 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos); in add_class_vars()
|
/PHP-5.5/ext/session/ |
H A D | mod_files.c | 76 size_t key_len; in ps_files_path_create() local 81 key_len = strlen(key); in ps_files_path_create() 82 if (key_len <= data->dirdepth || in ps_files_path_create() 83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { in ps_files_path_create() 97 memcpy(buf + n, key, key_len); in ps_files_path_create() 98 n += key_len; in ps_files_path_create()
|
H A D | mod_user_class.c | 75 int key_len, val_len; in PHP_METHOD() local 79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD() 99 int key_len, val_len; in PHP_METHOD() local 103 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAIL… in PHP_METHOD() 116 int key_len; in PHP_METHOD() local 120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { in PHP_METHOD()
|
/PHP-5.5/ext/snmp/ |
H A D | snmp.c | 2115 uint key_len; in php_snmp_get_properties() local 2125 zend_hash_get_current_key_ex(&php_snmp_properties, &key, &key_len, &num_key, 0, &pos); in php_snmp_get_properties() 2130 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL); in php_snmp_get_properties()
|
/PHP-5.5/ext/soap/ |
H A D | php_schema.c | 2144 uint key_len; in schema_attributegroup_fixup() local 2163 zend_hash_get_current_key_ex((*tmp)->attributes, &key, &key_len, NULL, 0, NULL); in schema_attributegroup_fixup() 2164 zend_hash_add(ht, key, key_len, &newAttr, sizeof(sdlAttributePtr), NULL); in schema_attributegroup_fixup()
|
H A D | php_sdl.c | 1803 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 2723 uint key_len; in make_persistent_sdl_type() local 2957 uint key_len; in make_persistent_sdl() local 3380 uint key_len; in get_sdl() local [all …]
|
H A D | soap.c | 1422 int key_len; in PHP_METHOD() local 1430 key_len = Z_STRLEN_PP(tmp_function); in PHP_METHOD() 1431 key = emalloc(key_len + 1); in PHP_METHOD() 1432 zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len); in PHP_METHOD() 1434 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) { in PHP_METHOD() 1449 int key_len; in PHP_METHOD() local 1452 key_len = Z_STRLEN_P(function_name); in PHP_METHOD() 1453 key = emalloc(key_len + 1); in PHP_METHOD() 1454 zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len); in PHP_METHOD() 1456 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) { in PHP_METHOD() [all …]
|
/PHP-5.5/ext/sockets/ |
H A D | sockets.c | 801 uint key_len; local 816 … switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) { 818 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
|