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

/PHP_5_4/ext/phar/
H A Ddirstream.c152 static int phar_add_empty(HashTable *ht, char *arKey, uint nKeyLength) /* {{{ */ argument
156 return zend_hash_update(ht, arKey, nKeyLength, (void *) &dummy, sizeof(void *), NULL);
171 result = zend_binary_strcmp(f->arKey, f->nKeyLength, s->arKey, s->nKeyLength);
H A Dphar_internal.h549 static inline int phar_make_unicode(zstr *c_var, char *arKey, uint nKeyLength TSRMLS_DC)
555 if (zend_string_to_unicode(conv, &c_var->u, &c_var_len, arKey, nKeyLength TSRMLS_CC) == FAILURE) {
/PHP_5_4/ext/reflection/
H A Dphp_reflection.c3927 if (hash_key->nKeyLength == 0) {
3935 ZVAL_STRINGL(&member, hash_key->arKey, hash_key->nKeyLength-1, 0);
/PHP_5_4/ext/soap/
H A Dphp_encoding.c2276 if (ht->pListTail && ht->pListTail->nKeyLength == 0) {
/PHP_5_4/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 Dbasic_functions.c4527 if (hash_key->nKeyLength > 0) {
4528 add_assoc_stringl_ex(retval, hash_key->arKey, hash_key->nKeyLength, Z_STRVAL_P(entry), Z_STRLEN_P(entry), 1);
4536 add_assoc_zval_ex(retval, hash_key->arKey, hash_key->nKeyLength, tmp);
5299 if (hash_key->nKeyLength == 0 ||
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_4/sapi/apache/
H A Dmod_php5.c742 if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &orig_per_dir_entry)==FAILURE) {
/PHP_5_4/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_4/sapi/apache_hooks/
H A Dmod_php5.c796 if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &new_per_dir_entry)==FAILURE) {
/PHP_5_4/Zend/
H A Dzend_API.c993 if (hash_key->nKeyLength) {
999 ZVAL_STRINGL(member, hash_key->arKey, hash_key->nKeyLength-1, 1);
H A Dzend_hash.c101 ZEND_API ulong zend_hash_func(const char *arKey, uint nKeyLength) argument
103 return zend_inline_hash_func(arKey, nKeyLength);
195 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
206 if (nKeyLength <= 0) {
215 h = zend_inline_hash_func(arKey, nKeyLength);
221 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) {
253 p = (Bucket *) pemalloc(sizeof(Bucket) + nKeyLength, ht->persistent);
258 memcpy((char*)p->arKey, arKey, nKeyLength);
278 _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
359 zend_hash_add_empty_element(HashTable *ht, const char *arKey, uint nKeyLength) argument
486 zend_hash_del_key_or_index(HashTable *ht, const char *arKey, uint nKeyLength, ulong h, int flag) argument
903 zend_get_hash_value(const char *arKey, uint nKeyLength) argument
913 zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
937 zend_hash_quick_find(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h, void **pData) argument
963 zend_hash_exists(const HashTable *ht, const char *arKey, uint nKeyLength) argument
986 zend_hash_quick_exists(const HashTable *ht, const char *arKey, uint nKeyLength, ulong h) argument
[all...]
H A Dzend_hash.h45 typedef ulong (*hash_func_t)(const char *arKey, uint nKeyLength);
56 uint nKeyLength; member in struct:bucket
87 uint nKeyLength; member in struct:_zend_hash_key
107 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);
108 #define zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
109 _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_UPDATE ZEND_FILE_LINE_CC)
110 #define zend_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) \
111 _zend_hash_add_or_update(ht, arKey, nKeyLength, pData, nDataSize, pDest, HASH_ADD ZEND_FILE_LINE_CC)
113 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);
114 #define zend_hash_quick_update(ht, arKey, nKeyLength,
261 zend_inline_hash_func(const char *arKey, uint nKeyLength) argument
348 zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void *pData, uint nDataSize, void **pDest) argument
355 zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength) argument
362 zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void **pData) argument
369 zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength) argument
375 zend_symtable_update_current_key_ex(HashTable *ht, const char *arKey, uint nKeyLength, int mode, HashPosition *pos) argument
[all...]
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.c82 static const char *zend_new_interned_string_int(const char *arKey, int nKeyLength, int free_src TSRMLS_DC) argument
93 h = zend_inline_hash_func(arKey, nKeyLength);
97 if ((p->h == h) && (p->nKeyLength == nKeyLength)) {
98 if (!memcmp(p->arKey, arKey, nKeyLength)) {
108 if (CG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength) >=
115 CG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(Bucket) + nKeyLength);
122 memcpy((char*)p->arKey, arKey, nKeyLength);
126 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_builtin_functions.c1663 if ((hash_key->nKeyLength==0 || hash_key->arKey[0]!=0)
1666 (ce->name_length != hash_key->nKeyLength - 1 ||
1668 add_next_index_stringl(array, hash_key->arKey, hash_key->nKeyLength - 1, 1);
1731 if (hash_key->nKeyLength == 0 || hash_key->arKey[0] == 0) {
1736 add_next_index_stringl(internal_ar, hash_key->arKey, hash_key->nKeyLength-1, 1);
1738 add_next_index_stringl(user_ar, hash_key->arKey, hash_key->nKeyLength-1, 1);
H A Dzend_compile.c3292 if (zend_hash_quick_find(child_function_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child)==FAILURE) {
3311 if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child_info)==SUCCESS) {
3314 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);
3326 if (zend_hash_quick_find(&ce->properties_info, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void **) &child_info)==SUCCESS) {
3547 if (zend_hash_quick_find(child_constants_table, hash_key->arKey, hash_key->nKeyLength, hash_key->h, (void**)&old_constant) == SUCCESS) {
3689 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
3692 ulong h = zend_hash_func(arKey, nKeyLength);
3694 if (zend_hash_quick_find(&ce->function_table, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
3699 if (zend_hash_quick_find(*overriden, arKey, nKeyLength, h, (void**) &existing_fn) == SUCCESS) {
3721 zend_hash_quick_update(*overriden, arKey, nKeyLength,
[all...]
H A Dzend_variables.c205 if (zend_hash_quick_find(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, (void **) &p) == FAILURE) {
209 zend_hash_quick_add(EG(active_symbol_table), key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), (void**)&p);
231 if (zend_hash_quick_add(target, key->arKey, key->nKeyLength, key->h, &tmp, sizeof(zval*), NULL) == SUCCESS) {
/PHP_5_4/ext/standard/html_tables/
H A Dhtml_table_gen.php727 $nKeyLength = strlen($str); variable
730 for (; $nKeyLength > 0; $nKeyLength--) {
/PHP_5_4/ext/spl/
H A Dspl_iterators.c2792 uint nKeyLength; local
2802 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &arKey, &nKeyLength, &value) == FAILURE) {
2807 zend_symtable_update(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, &value, sizeof(value), NULL);
2817 uint nKeyLength; local
2827 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) {
2831 if (zend_symtable_find(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1, (void**)&value) == FAILURE) {
2846 uint nKeyLength; local
2855 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arKey, &nKeyLength) == FAILURE) {
2859 zend_symtable_del(HASH_OF(intern->u.caching.zcache), arKey, nKeyLength+1);
2869 uint nKeyLength; local
[all...]
/PHP_5_4/sapi/cli/
H A Dphp_cli_server.c592 if (hash_key->nKeyLength) {
595 key = estrndup(hash_key->arKey, hash_key->nKeyLength);
596 for(i=0; i<hash_key->nKeyLength; i++) {

Completed in 110 milliseconds