/PHP-5.6/Zend/ |
H A D | zend_hash.h | 46 typedef ulong (*hash_func_t)(const char *arKey, uint nKeyLength); 57 uint nKeyLength; member 88 uint nKeyLength; member 154 #define zend_hash_del(ht, arKey, nKeyLength) \ argument 156 #define zend_hash_quick_del(ht, arKey, nKeyLength, h) \ argument 274 for (; nKeyLength >= 8; nKeyLength -= 8) { in zend_inline_hash_func() 284 switch (nKeyLength) { in zend_inline_hash_func() 299 ZEND_API ulong zend_hash_func(const char *arKey, uint nKeyLength); 366 return zend_hash_del(ht, arKey, nKeyLength); in zend_symtable_del() 373 return zend_hash_find(ht, arKey, nKeyLength, pData); in zend_symtable_find() [all …]
|
H A D | zend_ts_hash.h | 53 #define zend_ts_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) \ argument 55 #define zend_ts_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) \ argument 59 #define zend_ts_hash_quick_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) \ argument 61 #define zend_ts_hash_quick_add(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) \ argument 70 ZEND_API int zend_ts_hash_add_empty_element(TsHashTable *ht, char *arKey, uint nKeyLength); 82 #define zend_ts_hash_del(ht, arKey, nKeyLength) \ argument 83 zend_ts_hash_del_key_or_index(ht, arKey, nKeyLength, 0, HASH_DEL_KEY) 87 ZEND_API ulong zend_ts_get_hash_value(TsHashTable *ht, char *arKey, uint nKeyLength); 90 ZEND_API int zend_ts_hash_find(TsHashTable *ht, char *arKey, uint nKeyLength, void **pData); 95 ZEND_API int zend_ts_hash_exists(TsHashTable *ht, char *arKey, uint nKeyLength); [all …]
|
H A D | zend_hash.c | 263 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_add_or_update() 290 p->nKeyLength = nKeyLength; in _zend_hash_add_or_update() 326 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_quick_add_or_update() 354 p->nKeyLength = nKeyLength; in _zend_hash_quick_add_or_update() 523 && (p->nKeyLength == nKeyLength) in zend_hash_del_key_or_index() 699 hash_key.nKeyLength = p->nKeyLength; in zend_hash_apply_with_arguments() 807 hash_key.nKeyLength = p->nKeyLength; in zend_hash_replace_checker_wrapper() 852 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_find() 876 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_find() 900 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_exists() [all …]
|
H A D | zend_ts_hash.c | 135 ZEND_API int zend_ts_hash_add_empty_element(TsHashTable *ht, char *arKey, uint nKeyLength) in zend_ts_hash_add_empty_element() argument 140 retval = zend_hash_add_empty_element(TS_HASH(ht), arKey, nKeyLength); in zend_ts_hash_add_empty_element() 195 retval = zend_hash_del_key_or_index(TS_HASH(ht), arKey, nKeyLength, h, flag); in zend_ts_hash_del_key_or_index() 201 ZEND_API ulong zend_ts_get_hash_value(TsHashTable *ht, char *arKey, uint nKeyLength) in zend_ts_get_hash_value() argument 206 retval = zend_get_hash_value(arKey, nKeyLength); in zend_ts_get_hash_value() 212 ZEND_API int zend_ts_hash_find(TsHashTable *ht, char *arKey, uint nKeyLength, void **pData) in zend_ts_hash_find() argument 217 retval = zend_hash_find(TS_HASH(ht), arKey, nKeyLength, pData); in zend_ts_hash_find() 223 ZEND_API int zend_ts_hash_quick_find(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void *… in zend_ts_hash_quick_find() argument 228 retval = zend_hash_quick_find(TS_HASH(ht), arKey, nKeyLength, h, pData); in zend_ts_hash_quick_find() 245 ZEND_API int zend_ts_hash_exists(TsHashTable *ht, char *arKey, uint nKeyLength) in zend_ts_hash_exists() argument [all …]
|
H A D | zend_string.c | 84 static const char *zend_new_interned_string_int(const char *arKey, int nKeyLength, int free_src TSR… in zend_new_interned_string_int() argument 95 h = zend_inline_hash_func(arKey, nKeyLength); in zend_new_interned_string_int() 99 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { in zend_new_interned_string_int() 100 if (!memcmp(p->arKey, arKey, nKeyLength)) { in zend_new_interned_string_int() 110 if (CG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength) >= in zend_new_interned_string_int() 117 CG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength); in zend_new_interned_string_int() 124 memcpy((char*)p->arKey, arKey, nKeyLength); in zend_new_interned_string_int() 128 p->nKeyLength = nKeyLength; in zend_new_interned_string_int()
|
H A D | zend_ini.c | 156 if (f->nKeyLength == 0 && s->nKeyLength == 0) { /* both numeric */ in ini_key_compare() 157 return ZEND_NORMALIZE_BOOL(f->nKeyLength - s->nKeyLength); in ini_key_compare() 158 } else if (f->nKeyLength == 0) { /* f is numeric, s is not */ in ini_key_compare() 160 } else if (s->nKeyLength == 0) { /* s is numeric, f is not */ in ini_key_compare() 163 return zend_binary_strcasecmp(f->arKey, f->nKeyLength, s->arKey, s->nKeyLength); in ini_key_compare()
|
H A D | zend_variables.c | 210 …if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &… in zval_copy_static_var() 214 …zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zva… in zval_copy_static_var() 236 …if (zend_hash_quick_add(target, key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), NULL) ==… in zval_copy_static_var()
|
H A D | zend_string.h | 48 (((Bucket*)(((char*)(s))-sizeof(Bucket)))->nKeyLength) in END_EXTERN_C()
|
H A D | zend_builtin_functions.c | 1658 if ((hash_key->nKeyLength==0 || hash_key->arKey[0]!=0) in copy_class_or_interface_name() 1661 (ce->name_length != hash_key->nKeyLength - 1 || in copy_class_or_interface_name() 1663 add_next_index_stringl(array, hash_key->arKey, hash_key->nKeyLength - 1, 1); in copy_class_or_interface_name() 1726 if (hash_key->nKeyLength == 0 || hash_key->arKey[0] == 0) { in copy_function_name() 1731 add_next_index_stringl(internal_ar, hash_key->arKey, hash_key->nKeyLength-1, 1); in copy_function_name() 1733 add_next_index_stringl(user_ar, hash_key->arKey, hash_key->nKeyLength-1, 1); in copy_function_name()
|
H A D | zend_generators.c | 249 zend_hash_quick_update(target, key->arKey, key->nKeyLength, key->h, var, sizeof(zval *), NULL); in copy_closure_static_var()
|
H A D | zend_compile.c | 3623 …if (zend_hash_quick_find(child_function_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h,… in do_inherit_method_check() 3643 …if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h,… in do_inherit_property_access_check() 3658 …if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h,… in do_inherit_property_access_check() 3880 …if (zend_hash_quick_find(child_constants_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h… in do_inherit_constant_check() 4027 ulong h = zend_hash_func(arKey, nKeyLength); in zend_add_trait_method() 4029 …if (zend_hash_quick_find(&ce->function_table, arKey, nKeyLength, h, (void**) &existing_fn) == SUCC… in zend_add_trait_method() 4034 if (zend_hash_quick_find(*overriden, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) { in zend_add_trait_method() 4056 zend_hash_quick_update(*overriden, arKey, nKeyLength, h, fn, sizeof(zend_function), (void**)&fn); in zend_add_trait_method() 4094 …zend_hash_quick_update(&ce->function_table, arKey, nKeyLength, h, fn, sizeof(zend_function), (void… in zend_add_trait_method() 4095 zend_add_magic_methods(ce, arKey, nKeyLength, fn TSRMLS_CC); in zend_add_trait_method() [all …]
|
/PHP-5.6/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 361 if (!p->nKeyLength) { 374 if (p->nKeyLength) { 375 memcpy(q->arKey, p->arKey, p->nKeyLength); 379 q->nKeyLength = p->nKeyLength; 488 if (!p->nKeyLength) { 501 if (p->nKeyLength) { 506 q->nKeyLength = p->nKeyLength; 599 if (!p->nKeyLength) { 612 if (p->nKeyLength) { 617 q->nKeyLength = p->nKeyLength; [all …]
|
H A D | ZendAccelerator.c | 325 h = zend_inline_hash_func(arKey, nKeyLength); in accel_new_interned_string() 331 if ((p->h == h) && (p->nKeyLength == (uint)nKeyLength)) { in accel_new_interned_string() 354 memcpy((char*)p->arKey, arKey, nKeyLength); in accel_new_interned_string() 355 p->nKeyLength = nKeyLength; in accel_new_interned_string() 403 if (p->nKeyLength) { in accel_use_shm_interned_strings() 414 if (p->nKeyLength) { in accel_use_shm_interned_strings() 426 if (q->nKeyLength) { in accel_use_shm_interned_strings() 439 if (q->nKeyLength) { in accel_use_shm_interned_strings() 447 if (q->nKeyLength) { in accel_use_shm_interned_strings() 459 if (p->nKeyLength) { in accel_use_shm_interned_strings() [all …]
|
H A D | zend_persist_calc.c | 61 if (p->nKeyLength) { in zend_hash_persist_calc() 62 const char *tmp = accel_new_interned_string(p->arKey, p->nKeyLength, 0 TSRMLS_CC); in zend_hash_persist_calc() 66 ADD_DUP_SIZE(p->arKey, p->nKeyLength); in zend_hash_persist_calc() 70 ADD_DUP_SIZE(p, sizeof(Bucket) - 1 + p->nKeyLength); in zend_hash_persist_calc()
|
H A D | zend_persist.c | 71 if (p->nKeyLength) { in zend_hash_persist() 72 p->arKey = zend_accel_memdup_interned_string(p->arKey, p->nKeyLength); in zend_hash_persist() 75 p = zend_accel_memdup(p, sizeof(Bucket) - 1 + p->nKeyLength); in zend_hash_persist()
|
H A D | ZendAccelerator.h | 358 const char *accel_new_interned_string(const char *arKey, int nKeyLength, int free_src TSRMLS_DC);
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_utils.h | 136 } else if (p->nKeyLength) { in zend_hash_get_current_key_zval_ex() 138 Z_STRVAL_P(key) = IS_INTERNED(p->arKey) ? (char*)p->arKey : estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_zval_ex() 139 Z_STRLEN_P(key) = p->nKeyLength - 1; in zend_hash_get_current_key_zval_ex()
|
/PHP-5.6/ext/standard/ |
H A D | var.c | 44 if (hash_key->nKeyLength == 0) { /* numeric key */ in php_array_element_dump() 48 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1); in php_array_element_dump() 63 if (hash_key->nKeyLength == 0) { /* numeric key */ in php_object_property_dump() 77 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1); in php_object_property_dump() 195 if (hash_key->nKeyLength == 0) { /* numeric key */ in zval_array_element_dump() 205 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1); in zval_array_element_dump() 220 if (hash_key->nKeyLength == 0) { /* numeric key */ in zval_object_property_dump() 223 zend_unmangle_property_name(hash_key->arKey, hash_key->nKeyLength - 1, &class_name, &prop_name); in zval_object_property_dump() 352 if (hash_key->nKeyLength == 0) { /* numeric key */ in php_array_element_export() 390 if (hash_key->nKeyLength != 0) { in php_object_element_export() [all …]
|
H A D | array.c | 184 if (f->nKeyLength == 0) { in php_array_key_compare() 190 Z_STRLEN(first) = f->nKeyLength - 1; in php_array_key_compare() 193 if (s->nKeyLength == 0) { in php_array_key_compare() 736 if (f->nKeyLength == 0) { in php_array_user_key_compare() 744 if (s->nKeyLength == 0) { in php_array_user_key_compare() 2741 if (p->nKeyLength == 0) { in PHP_FUNCTION() 2866 if (p->nKeyLength == 0) { in php_array_intersect_key() 3111 if (p->nKeyLength == 0) { in php_array_intersect() 3127 if (p->nKeyLength == 0) { in php_array_intersect() 3284 if (p->nKeyLength == 0) { in php_array_diff_key() [all …]
|
/PHP-5.6/ext/standard/html_tables/ |
H A D | html_table_gen.php | 730 $nKeyLength = strlen($str); 733 for (; $nKeyLength > 0; $nKeyLength--) {
|
/PHP-5.6/ |
H A D | .gdbinit | 302 if $p->nKeyLength > 0 303 ____print_str $p->arKey $p->nKeyLength 332 if $p->nKeyLength > 0 333 ____print_str $p->arKey $p->nKeyLength 400 if $p->nKeyLength > 0 401 ____print_str $p->arKey $p->nKeyLength
|
/PHP-5.6/ext/phar/ |
H A D | dirstream.c | 144 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ in phar_add_empty() argument 148 return zend_hash_update(ht, arKey, nKeyLength, (void *) &dummy, sizeof(void *), NULL); in phar_add_empty() 163 result = zend_binary_strcmp(f->arKey, f->nKeyLength, s->arKey, s->nKeyLength); in phar_compare_dir_name()
|
/PHP-5.6/sapi/apache2handler/ |
H A D | apache_config.c | 124 …if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &orig_per_dir_entry… in should_overwrite_per_dir_entry()
|
/PHP-5.6/ext/spl/ |
H A D | spl_iterators.c | 2894 uint nKeyLength; in SPL_METHOD() local 2904 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &arKey, &nKeyLength, &value) == FAILURE… in SPL_METHOD() 2909 …zend_symtable_update(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, &value, sizeof(value)… in SPL_METHOD() 2919 uint nKeyLength; in SPL_METHOD() local 2929 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) { in SPL_METHOD() 2948 uint nKeyLength; in SPL_METHOD() local 2957 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) { in SPL_METHOD() 2961 zend_symtable_del(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1); in SPL_METHOD() 2971 uint nKeyLength; in SPL_METHOD() local 2980 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) { in SPL_METHOD() [all …]
|
/PHP-5.6/ext/opcache/Optimizer/ |
H A D | zend_optimizer.c | 652 …if (zend_hash_find(&op_array->scope->function_table, q->arKey, q->nKeyLength, (void**)&orig_op_arr… in zend_accel_script_optimize()
|