Searched refs:nKeyLength (Results 1 - 25 of 31) sorted by relevance

12

/PHP_5_6/Zend/
H A Dzend_ini.c156 if (f->nKeyLength == 0 && s->nKeyLength == 0) { /* both numeric */
157 return ZEND_NORMALIZE_BOOL(f->nKeyLength - s->nKeyLength);
158 } else if (f->nKeyLength == 0) { /* f is numeric, s is not */
160 } else if (s->nKeyLength == 0) { /* s is numeric, f is not */
163 return zend_binary_strcasecmp(f->arKey, f->nKeyLength, s->arKey, s->nKeyLength);
H A Dzend_string.c84 static const char *zend_new_interned_string_int(const char *arKey, int nKeyLength, int free_src TSRMLS_DC) argument
95 h = zend_inline_hash_func(arKey, nKeyLength);
99 if ((p->h == h) && (p->nKeyLength == nKeyLength)) {
100 if (!memcmp(p->arKey, arKey, nKeyLength)) {
110 if (CG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength) >=
117 CG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength);
124 memcpy((char*)p->arKey, arKey, nKeyLength);
128 p->nKeyLength = nKeyLength;
[all...]
H A Dzend_string.h48 (((Bucket*)(((char*)(s))-sizeof(Bucket)))->nKeyLength)
H A Dzend_ts_hash.c102 ZEND_API int _zend_ts_hash_add_or_update(TsHashTable *ht, char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
107 retval = _zend_hash_add_or_update(TS_HASH(ht), arKey, nKeyLength, pData, nDataSize, pDest, flag ZEND_FILE_LINE_RELAY_CC);
113 ZEND_API int _zend_ts_hash_quick_add_or_update(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
118 retval = _zend_hash_quick_add_or_update(TS_HASH(ht), arKey, nKeyLength, h, pData, nDataSize, pDest, flag ZEND_FILE_LINE_RELAY_CC);
135 ZEND_API int zend_ts_hash_add_empty_element(TsHashTable *ht, char *arKey, uint nKeyLength) argument
140 retval = zend_hash_add_empty_element(TS_HASH(ht), arKey, nKeyLength);
190 ZEND_API int zend_ts_hash_del_key_or_index(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, int flag) argument
195 retval = zend_hash_del_key_or_index(TS_HASH(ht), arKey, nKeyLength, h, flag);
201 ZEND_API ulong zend_ts_get_hash_value(TsHashTable *ht, char *arKey, uint nKeyLength) argument
206 retval = zend_get_hash_value(arKey, nKeyLength);
212 zend_ts_hash_find(TsHashTable *ht, char *arKey, uint nKeyLength, void **pData) argument
223 zend_ts_hash_quick_find(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void **pData) argument
245 zend_ts_hash_exists(TsHashTable *ht, char *arKey, uint nKeyLength) argument
[all...]
H A Dzend_ts_hash.h52 ZEND_API int _zend_ts_hash_add_or_update(TsHashTable *ht, char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC);
53 #define zend_ts_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
54 _zend_ts_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
55 #define zend_ts_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
56 _zend_ts_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC)
58 ZEND_API int _zend_ts_hash_quick_add_or_update(TsHashTable *ht, char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC);
59 #define zend_ts_hash_quick_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) \
60 _zend_ts_hash_quick_add_or_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
61 #define zend_ts_hash_quick_add(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) \
62 _zend_ts_hash_quick_add_or_update(ht, arKey, nKeyLength,
[all...]
H A Dzend_hash.h46 typedef ulong (*hash_func_t)(const char *arKey, uint nKeyLength);
57 uint nKeyLength; member in struct:bucket
88 uint nKeyLength; member in struct:_zend_hash_key
108 ZEND_API int _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC);
109 #define zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
110 _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
111 #define zend_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
112 _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC)
114 ZEND_API int _zend_hash_quick_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC);
115 #define zend_hash_quick_update(ht, arKey, nKeyLength,
269 zend_inline_hash_func(const char *arKey, uint nKeyLength) argument
356 zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest) argument
363 zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength) argument
370 zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
377 zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength) argument
383 zend_symtable_update_current_key_ex(HashTable *ht, const char *arKey, uint nKeyLength, int mode, HashPosition *pos) argument
[all...]
H A Dzend_variables.c209 if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &p) == FAILURE) {
213 zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), (void**)&p);
235 if (zend_hash_quick_add(target, key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), NULL) == SUCCESS) {
H A Dzend_hash.c107 ZEND_API ulong zend_hash_func(const char *arKey, uint nKeyLength) argument
109 return zend_inline_hash_func(arKey, nKeyLength);
242 ZEND_API int _zend_hash_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
253 ZEND_ASSERT(nKeyLength != 0);
257 h = zend_inline_hash_func(arKey, nKeyLength);
263 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) {
286 p = (Bucket *) pemalloc(sizeof(Bucket) + nKeyLength, ht->persistent);
288 memcpy((char*)p->arKey, arKey, nKeyLength);
308 _zend_hash_quick_add_or_update(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest, int flag ZEND_FILE_LINE_DC) argument
375 zend_hash_add_empty_element(HashTable *ht, const char *arKey, uint nKeyLength) argument
508 zend_hash_del_key_or_index(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, int flag) argument
838 zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
862 zend_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) argument
886 zend_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) argument
909 zend_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) argument
[all...]
H A Dzend_builtin_functions.c1658 if ((hash_key->nKeyLength==0 || hash_key->arKey[0]!=0)
1661 (ce->name_length != hash_key->nKeyLength - 1 ||
1663 add_next_index_stringl(array, hash_key->arKey, hash_key->nKeyLength - 1, 1);
1726 if (hash_key->nKeyLength == 0 || hash_key->arKey[0] == 0) {
1731 add_next_index_stringl(internal_ar, hash_key->arKey, hash_key->nKeyLength-1, 1);
1733 add_next_index_stringl(user_ar, hash_key->arKey, hash_key->nKeyLength-1, 1);
H A Dzend_generators.c246 zend_hash_quick_update(target, key->arKey, key->nKeyLength, key->h, var, sizeof(zval *), NULL);
H A Dzend_compile.c3606 if (zend_hash_quick_find(child_function_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child)==FAILURE) {
3625 if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child_info)==SUCCESS) {
3628 zend_hash_quick_update(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, parent_info, sizeof(zend_property_info), (void **) &child_info);
3640 if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child_info)==SUCCESS) {
3861 if (zend_hash_quick_find(child_constants_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void**)&old_constant) == SUCCESS) {
4005 static void zend_add_trait_method(zend_class_entry *ce, const char *name, const char *arKey, uint nKeyLength, zend_function *fn, HashTable **overriden TSRMLS_DC) /* {{{ */ argument
4008 ulong h = zend_hash_func(arKey, nKeyLength);
4010 if (zend_hash_quick_find(&ce->function_table, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
4015 if (zend_hash_quick_find(*overriden, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
4037 zend_hash_quick_update(*overriden, arKey, nKeyLength,
[all...]
/PHP_5_6/ext/phar/
H A Ddirstream.c144 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ argument
148 return zend_hash_update(ht, arKey, nKeyLength, (void *) &dummy, sizeof(void *), NULL);
163 result = zend_binary_strcmp(f->arKey, f->nKeyLength, s->arKey, s->nKeyLength);
/PHP_5_6/sapi/apache2handler/
H A Dapache_config.c124 if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &orig_per_dir_entry)==FAILURE) {
/PHP_5_6/ext/standard/html_tables/
H A Dhtml_table_gen.php730 $nKeyLength = strlen($str); variable
733 for (; $nKeyLength > 0; $nKeyLength--) {
/PHP_5_6/ext/opcache/
H A DZendAccelerator.c312 const char *accel_new_interned_string(const char *arKey, int nKeyLength, int free_src TSRMLS_DC) argument
325 h = zend_inline_hash_func(arKey, nKeyLength);
331 if ((p->h == h) && (p->nKeyLength == (uint)nKeyLength)) {
332 if (!memcmp(p->arKey, arKey, nKeyLength)) {
342 if (ZCSG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength) >=
351 ZCSG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength);
354 memcpy((char*)p->arKey, arKey, nKeyLength);
355 p->nKeyLength = nKeyLength;
[all...]
H A Dzend_persist_calc.c61 if (p->nKeyLength) {
62 const char *tmp = accel_new_interned_string(p->arKey, p->nKeyLength, 0 TSRMLS_CC);
66 ADD_DUP_SIZE(p->arKey, p->nKeyLength);
70 ADD_DUP_SIZE(p, sizeof(Bucket) - 1 + p->nKeyLength);
H A DZendAccelerator.h352 const char *accel_new_interned_string(const char *arKey, int nKeyLength, int free_src TSRMLS_DC);
H A Dzend_persist.c71 if (p->nKeyLength) {
72 p->arKey = zend_accel_memdup_interned_string(p->arKey, p->nKeyLength);
75 p = zend_accel_memdup(p, sizeof(Bucket) - 1 + p->nKeyLength);
H A Dzend_accelerator_util_funcs.c183 zend_hash_quick_update(function_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, function, sizeof(zend_function), NULL);
361 if (!p->nKeyLength) {
368 q = (Bucket *) emalloc(sizeof(Bucket) + p->nKeyLength);
370 memcpy((char*)q->arKey, p->arKey, p->nKeyLength);
373 q = (Bucket *) emalloc(sizeof(Bucket) - 1 + p->nKeyLength);
374 if (p->nKeyLength) {
375 memcpy(q->arKey, p->arKey, p->nKeyLength);
379 q->nKeyLength = p->nKeyLength;
488 if (!p->nKeyLength) {
[all...]
/PHP_5_6/ext/opcache/Optimizer/
H A Dzend_optimizer.c590 if (zend_hash_find(&op_array->scope->function_table, q->arKey, q->nKeyLength, (void**)&orig_op_array) == SUCCESS) {
/PHP_5_6/ext/standard/
H A Dvar.c44 if (hash_key->nKeyLength == 0) { /* numeric key */
48 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1);
63 if (hash_key->nKeyLength == 0) { /* numeric key */
66 int unmangle = zend_unmangle_property_name(hash_key->arKey, hash_key->nKeyLength - 1, &class_name, &prop_name);
77 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1);
195 if (hash_key->nKeyLength == 0) { /* numeric key */
205 PHPWRITE(hash_key->arKey, hash_key->nKeyLength - 1);
220 if (hash_key->nKeyLength == 0) { /* numeric key */
223 zend_unmangle_property_name(hash_key->arKey, hash_key->nKeyLength - 1, &class_name, &prop_name);
352 if (hash_key->nKeyLength
[all...]
H A Darray.c184 if (f->nKeyLength == 0) {
190 Z_STRLEN(first) = f->nKeyLength - 1;
193 if (s->nKeyLength == 0) {
199 Z_STRLEN(second) = s->nKeyLength - 1;
736 if (f->nKeyLength == 0) {
740 Z_STRVAL_P(key1) = estrndup(f->arKey, f->nKeyLength - 1);
741 Z_STRLEN_P(key1) = f->nKeyLength - 1;
744 if (s->nKeyLength == 0) {
748 Z_STRVAL_P(key2) = estrndup(s->arKey, s->nKeyLength - 1);
749 Z_STRLEN_P(key2) = s->nKeyLength
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_utils.h136 } else if (p->nKeyLength) {
138 Z_STRVAL_P(key) = IS_INTERNED(p->arKey) ? (char*)p->arKey : estrndup(p->arKey, p->nKeyLength - 1);
139 Z_STRLEN_P(key) = p->nKeyLength - 1;
/PHP_5_6/sapi/cli/
H A Dphp_cli_server.c718 if (hash_key->nKeyLength) {
721 key = estrndup(hash_key->arKey, hash_key->nKeyLength);
722 for(i=0; i<hash_key->nKeyLength; i++) {
/PHP_5_6/ext/spl/
H A Dspl_iterators.c2832 uint nKeyLength; local
2842 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &arKey, &nKeyLength, &value) == FAILURE) {
2847 zend_symtable_update(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, &value, sizeof(value), NULL);
2857 uint nKeyLength; local
2867 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) {
2871 if (zend_symtable_find(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, (void**)&value) == FAILURE) {
2886 uint nKeyLength; local
2895 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) {
2899 zend_symtable_del(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1);
2909 uint nKeyLength; local
[all...]

Completed in 50 milliseconds

12