Searched refs:idx (Results 1 - 25 of 79) sorted by relevance

1234

/PHP_TRUNK/scripts/dev/
H A Dcheck_parameters.php138 function check_param($db, $idx, $exp, $optional)
142 if ($idx >= count($db)) {
148 } elseif ($db[$idx][0] === '**dummy**') {
152 if ($db[$idx][1] != $exp) {
153 error("{$db[$idx][0]}: expected '$exp' but got '{$db[$idx][1]}' [".($idx+1).']');
156 if ($optional && !$db[$idx][2]) {
157 error("optional var not initialized: {$db[$idx][0]} [".($idx
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_add_entry.c47 zip_uint64_t idx; local
62 idx = za->nentry++;
64 _zip_entry_init(za->entry+idx);
66 return (zip_int64_t)idx;
H A Dzip_delete.c41 zip_delete(struct zip *za, zip_uint64_t idx) argument
43 if (idx >= za->nentry) {
55 if (_zip_unchange(za, idx, 1) != 0)
58 za->entry[idx].deleted = 1;
H A Dzip_file_get_comment.c42 zip_file_get_comment(struct zip *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags) argument
48 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
H A Dzip_file_get_offset.c54 _zip_file_get_offset(const struct zip *za, zip_uint64_t idx, struct zip_error *error) argument
59 offset = za->entry[idx].orig->offset;
H A Dzip_file_rename.c43 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
48 if (idx >= za->nentry || (name != NULL && strlen(name) > ZIP_UINT16_MAX)) {
58 if ((old_name=zip_get_name(za, idx, 0)) == NULL)
69 return _zip_set_name(za, idx, name, flags);
H A Dzip_file_replace.c41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags) argument
43 if (idx >= za->nentry || source == NULL) {
48 if (_zip_file_replace(za, idx, NULL, source, flags) == -1)
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags) argument
70 if (idx == ZIP_UINT64_MAX) {
81 idx = (zip_uint64_t)i;
84 if (name && _zip_set_name(za, idx, name, flags) != 0) {
86 _zip_entry_finalize(za->entry+idx);
94 _zip_unchange_data(za->entry+idx);
96 if (za->entry[idx]
[all...]
H A Dzip_fopen.c43 zip_int64_t idx; local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
48 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password);
H A Dzip_fopen_encrypted.c43 zip_int64_t idx; local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
48 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
H A Dzip_get_file_comment.c42 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) argument
47 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
H A Dzip_get_name.c43 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags) argument
45 return _zip_get_name(za, idx, flags, &za->error);
51 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error) argument
56 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL)
H A Dzip_rename.c44 zip_rename(struct zip *za, zip_uint64_t idx, const char *name) argument
46 return zip_file_rename(za, idx, name, 0);
H A Dzip_replace.c42 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) argument
44 return zip_file_replace(za, idx, source, 0);
H A Dzip_set_file_comment.c44 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
50 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
H A Dzip_set_name.c44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
51 if (idx >= za->nentry) {
72 if ((i=_zip_name_locate(za, name, 0, NULL)) >= 0 && (zip_uint64_t)i != idx) {
79 if (i>=0 && (zip_uint64_t)i == idx) {
84 e = za->entry+idx;
H A Dzip_stat.c43 zip_int64_t idx; local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
48 return zip_stat_index(za, (zip_uint64_t)idx, flags, st);
H A Dzip_unchange.c43 zip_unchange(struct zip *za, zip_uint64_t idx) argument
45 return _zip_unchange(za, idx, 0);
51 _zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates) argument
55 if (idx >= za->nentry) {
60 if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_FILENAME)) {
61 i = _zip_name_locate(za, _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL), 0, NULL);
62 if (i >= 0 && (zip_uint64_t)i != idx) {
68 _zip_dirent_free(za->entry[idx].changes);
69 za->entry[idx]
[all...]
H A Dzip_dir_add.c49 zip_int64_t idx; local
81 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags);
85 if (idx < 0)
88 if (zip_file_set_external_attributes(za, (zip_uint64_t)idx, 0, ZIP_OPSYS_DEFAULT, ZIP_EXT_ATTRIB_DEFAULT_DIR) < 0) {
89 zip_delete(za, (zip_uint64_t)idx);
94 return idx;
H A Dzip_extra_field_api.c41 zip_file_extra_field_delete(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_flags_t flags) argument
55 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
63 if (_zip_file_extra_field_prepare_for_change(za, idx) < 0)
66 de = za->entry[idx].changes;
75 zip_file_extra_field_delete_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_flags_t flags) argument
89 if (_zip_get_dirent(za, idx, 0, NULL) == NULL)
97 if (_zip_file_extra_field_prepare_for_change(za, idx) < 0)
100 de = za->entry[idx].changes;
109 zip_file_extra_field_get(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_idx, zip_uint16_t *idp, zip_uint16_t *lenp, zip_flags_t flags) argument
122 if ((de=_zip_get_dirent(za, idx, flag
156 zip_file_extra_field_get_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, zip_uint16_t *lenp, zip_flags_t flags) argument
178 zip_file_extra_fields_count(struct zip *za, zip_uint64_t idx, zip_flags_t flags) argument
207 zip_file_extra_fields_count_by_id(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_flags_t flags) argument
236 zip_file_extra_field_set(struct zip *za, zip_uint64_t idx, zip_uint16_t ef_id, zip_uint16_t ef_idx, const zip_uint8_t *data, zip_uint16_t len, zip_flags_t flags) argument
340 _zip_file_extra_field_prepare_for_change(struct zip *za, zip_uint64_t idx) argument
[all...]
H A Dzip_file_get_external_attributes.c37 zip_file_get_external_attributes(struct zip *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t *opsys, zip_uint32_t *attributes) argument
41 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
/PHP_TRUNK/ext/spl/
H A Dspl_engine.c45 zend_ulong idx; local
49 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) {
50 return idx;
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_btree.c39 phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx) { argument
48 if ((idx >> i) % 2 == 1) {
66 phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx) { argument
78 if (!had_alternative_branch && (idx >> i) % 2 == 0 && !branch->branches[0]) {
79 /* there's no lower branch than idx */
87 /* follow branch according to bits in idx until the last lower branch before the impossible branch */
89 CHOOSE_BRANCH((idx >> i) % 2 == 1 && branch->branches[1]);
91 /* use now the lower branch of which we can be sure that it contains only branches lower than idx */
93 /* and choose the highest possible branch in the branch containing only branches lower than idx */
99 /* follow branch according to bits in idx unti
140 phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags) argument
175 phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx) argument
[all...]
H A Dphpdbg_btree.h27 zend_ulong idx; member in struct:__anon6
50 phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx);
51 phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx);
54 int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx);
60 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags);
61 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_INSERT)
62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BTREE_UPDATE)
63 #define phpdbg_btree_overwrite(tree, idx, pt
[all...]
/PHP_TRUNK/Zend/
H A Dzend_string.c83 uint idx; local
92 idx = HT_HASH(&CG(interned_strings), nIndex);
93 while (idx != HT_INVALID_IDX) {
94 p = HT_HASH_TO_BUCKET(&CG(interned_strings), idx);
101 idx = Z_NEXT(p->val);
133 idx = CG(interned_strings).nNumUsed++;
135 p = CG(interned_strings).arData + idx;
142 HT_HASH(&CG(interned_strings), nIndex) = HT_IDX_TO_HASH(idx);
155 uint idx; local
158 idx
172 uint idx; local
[all...]
H A Dzend_hash.c271 uint32_t idx; local
280 idx = iter - EG(ht_iterators);
281 if (idx + 1 > EG(ht_iterators_used)) {
282 EG(ht_iterators_used) = idx + 1;
284 return idx;
299 idx = iter - EG(ht_iterators);
300 EG(ht_iterators_used) = idx + 1;
301 return idx;
304 ZEND_API HashPosition ZEND_FASTCALL zend_hash_iterator_pos(uint32_t idx, HashTable *ht) argument
306 HashTableIterator *iter = EG(ht_iterators) + idx;
324 zend_hash_iterator_del(uint32_t idx) argument
347 uint32_t idx; local
404 uint32_t idx; local
428 uint32_t idx; local
451 uint32_t idx; local
472 uint32_t idx; local
625 uint32_t idx; local
858 _zend_hash_del_el_ex(HashTable *ht, uint32_t idx, Bucket *p, Bucket *prev) argument
906 _zend_hash_del_el(HashTable *ht, uint32_t idx, Bucket *p) argument
930 uint32_t idx; local
961 uint32_t idx; local
1005 uint32_t idx; local
1048 uint32_t idx; local
1077 uint32_t idx; local
1279 uint32_t idx; local
1299 uint32_t idx; local
1331 uint32_t idx; local
1358 uint32_t idx; local
1385 uint32_t idx; local
1421 uint32_t idx; local
1450 uint32_t idx; local
1496 uint32_t idx, target_idx; local
1621 uint32_t idx; local
1669 uint32_t idx; local
1788 uint32_t idx; local
1808 uint32_t idx; local
1827 uint32_t idx = *pos; local
1851 uint32_t idx = *pos; local
1875 uint32_t idx = *pos; local
1894 uint32_t idx = *pos; local
1912 uint32_t idx = *pos; local
1930 uint32_t idx = *pos; local
2165 uint32_t idx; local
2200 _zend_handle_numeric_str_ex(const char *key, size_t length, zend_ulong *idx) argument
[all...]

Completed in 93 milliseconds

1234