Searched refs:idx (Results 1 - 25 of 77) 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_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
43 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
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...]
/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:__anon379
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.c84 uint idx; local
93 idx = CG(interned_strings).arHash[nIndex];
94 while (idx != INVALID_IDX) {
95 p = CG(interned_strings).arData + idx;
102 idx = Z_NEXT(p->val);
127 idx = CG(interned_strings).nNumUsed++;
129 p = CG(interned_strings).arData + idx;
136 CG(interned_strings).arHash[nIndex] = idx;
149 uint idx; local
152 idx
166 uint idx; local
[all...]
H A Dzend_hash.h226 ZEND_API int _zend_handle_numeric_str_ex(const char *key, size_t length, zend_ulong *idx);
230 ZEND_API HashPosition zend_hash_iterator_pos(uint32_t idx, HashTable *ht);
231 ZEND_API void zend_hash_iterator_del(uint32_t idx);
251 static zend_always_inline int _zend_handle_numeric_str(const char *key, size_t length, zend_ulong *idx) argument
266 return _zend_handle_numeric_str_ex(key, length, idx);
269 #define ZEND_HANDLE_NUMERIC_STR(key, length, idx) \
270 _zend_handle_numeric_str(key, length, &idx)
272 #define ZEND_HANDLE_NUMERIC(key, idx) \
273 ZEND_HANDLE_NUMERIC_STR((key)->val, (key)->len, idx)
306 zend_ulong idx; local
318 zend_ulong idx; local
330 zend_ulong idx; local
342 zend_ulong idx; local
354 zend_ulong idx; local
366 zend_ulong idx; local
378 zend_ulong idx; local
390 zend_ulong idx; local
402 zend_ulong idx; local
414 zend_ulong idx; local
426 zend_ulong idx; local
438 zend_ulong idx; local
450 zend_ulong idx; local
627 zend_ulong idx; local
[all...]
H A Dzend_hash.c226 uint32_t idx; local
235 idx = iter - EG(ht_iterators);
236 if (idx + 1 > EG(ht_iterators_used)) {
237 EG(ht_iterators_used) = idx + 1;
239 return idx;
254 idx = iter - EG(ht_iterators);
255 EG(ht_iterators_used) = idx + 1;
256 return idx;
259 ZEND_API HashPosition zend_hash_iterator_pos(uint32_t idx, HashTable *ht) argument
261 HashTableIterator *iter = EG(ht_iterators) + idx;
279 zend_hash_iterator_del(uint32_t idx) argument
302 uint32_t idx; local
359 uint32_t idx; local
382 uint32_t idx; local
404 uint32_t idx; local
424 uint32_t idx; local
577 uint32_t idx; local
805 _zend_hash_del_el_ex(HashTable *ht, uint32_t idx, Bucket *p, Bucket *prev) argument
852 _zend_hash_del_el(HashTable *ht, uint32_t idx, Bucket *p) argument
876 uint32_t idx; local
907 uint32_t idx; local
951 uint32_t idx; local
994 uint32_t idx; local
1023 uint32_t idx; local
1225 uint32_t idx; local
1245 uint32_t idx; local
1277 uint32_t idx; local
1304 uint32_t idx; local
1331 uint32_t idx; local
1367 uint32_t idx; local
1396 uint32_t idx; local
1442 uint32_t idx, target_idx; local
1569 uint32_t idx; local
1617 uint32_t idx; local
1736 uint32_t idx; local
1756 uint32_t idx; local
1775 uint32_t idx = *pos; local
1799 uint32_t idx = *pos; local
1823 uint32_t idx = *pos; local
1842 uint32_t idx = *pos; local
1860 uint32_t idx = *pos; local
1878 uint32_t idx = *pos; local
2105 uint32_t idx; local
2140 _zend_handle_numeric_str_ex(const char *key, size_t length, zend_ulong *idx) argument
[all...]

Completed in 43 milliseconds

1234