Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 109) sorted by relevance

12345

/PHP-7.1/ext/zip/lib/
H A Dzip_file_replace.c41 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
67 if (idx == ZIP_UINT64_MAX) { in _zip_file_replace()
78 idx = (zip_uint64_t)i; in _zip_file_replace()
81 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
83 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
91 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
93 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
94 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
95 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
105 za->entry[idx].source = source; in _zip_file_replace()
[all …]
H A Dzip_unchange.c41 zip_unchange(zip_t *za, zip_uint64_t idx) in zip_unchange() argument
43 return _zip_unchange(za, idx, 0); in zip_unchange()
48 _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange() argument
53 if (idx >= za->nentry) { in _zip_unchange()
58 …if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_F… in _zip_unchange()
59 if (za->entry[idx].orig != NULL) { in _zip_unchange()
65 if (i >= 0 && (zip_uint64_t)i != idx) { in _zip_unchange()
74 if ((changed_name=_zip_get_name(za, idx, 0, &za->error)) == NULL) { in _zip_unchange()
89 _zip_dirent_free(za->entry[idx].changes); in _zip_unchange()
90 za->entry[idx].changes = NULL; in _zip_unchange()
[all …]
H A Dzip_extra_field_api.c53 if (_zip_get_dirent(za, idx, 0, NULL) == NULL) in zip_file_extra_field_delete()
64 de = za->entry[idx].changes; in zip_file_extra_field_delete()
97 de = za->entry[idx].changes; in zip_file_extra_field_delete_by_id()
122 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_field_get()
164 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_field_get_by_id()
187 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_fields_count()
215 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_fields_count_by_id()
256 de = za->entry[idx].changes; in zip_file_extra_field_set()
336 if (idx >= za->nentry) { in _zip_file_extra_field_prepare_for_change()
341 e = za->entry+idx; in _zip_file_extra_field_prepare_for_change()
[all …]
H A Dzip_delete.c39 zip_delete(zip_t *za, zip_uint64_t idx) in zip_delete() argument
43 if (idx >= za->nentry) { in zip_delete()
53 if ((name=_zip_get_name(za, idx, 0, &za->error)) == NULL) { in zip_delete()
63 if (_zip_unchange(za, idx, 1) != 0) in zip_delete()
66 za->entry[idx].deleted = 1; in zip_delete()
H A Dzip_dir_add.c47 zip_int64_t idx; in zip_dir_add() local
79 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags); in zip_dir_add()
83 if (idx < 0) in zip_dir_add()
86 …if (zip_file_set_external_attributes(za, (zip_uint64_t)idx, 0, ZIP_OPSYS_DEFAULT, ZIP_EXT_ATTRIB_D… in zip_dir_add()
87 zip_delete(za, (zip_uint64_t)idx); in zip_dir_add()
92 return idx; in zip_dir_add()
H A Dzip_get_name.c41 zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags) in zip_get_name() argument
43 return _zip_get_name(za, idx, flags, &za->error); in zip_get_name()
48 _zip_get_name(zip_t *za, zip_uint64_t idx, zip_flags_t flags, zip_error_t *error) in _zip_get_name() argument
53 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL) in _zip_get_name()
H A Dzip_file_rename.c41 zip_file_rename(zip_t *za, zip_uint64_t idx, const char *name, zip_flags_t flags) in zip_file_rename() argument
46 if (idx >= za->nentry || (name != NULL && strlen(name) > ZIP_UINT16_MAX)) { in zip_file_rename()
56 if ((old_name=zip_get_name(za, idx, 0)) == NULL) in zip_file_rename()
67 return _zip_set_name(za, idx, name, flags); in zip_file_rename()
H A Dzip_stat.c41 zip_int64_t idx; in zip_stat() local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_stat()
46 return zip_stat_index(za, (zip_uint64_t)idx, flags, st); in zip_stat()
H A Dzip_fopen.c41 zip_int64_t idx; in zip_fopen() local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen()
46 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password); in zip_fopen()
H A Dzip_fopen_encrypted.c41 zip_int64_t idx; in zip_fopen_encrypted() local
43 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen_encrypted()
46 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password); in zip_fopen_encrypted()
H A Dzip_add_entry.c45 zip_uint64_t idx; in _zip_add_entry() local
76 idx = za->nentry++; in _zip_add_entry()
78 _zip_entry_init(za->entry+idx); in _zip_add_entry()
80 return (zip_int64_t)idx; in _zip_add_entry()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg_btree.h27 zend_ulong idx; member
52 phpdbg_btree_result *phpdbg_btree_find(phpdbg_btree *tree, zend_ulong idx);
53 phpdbg_btree_result *phpdbg_btree_find_closest(phpdbg_btree *tree, zend_ulong idx);
56 int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx);
62 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags);
63 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument
64 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument
65 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG… argument
H A Dphpdbg_btree.c51 if ((idx >> i) % 2 == 1) { in phpdbg_btree_find()
79 if ((idx >> i) % 2 == 0) { in phpdbg_btree_find_closest()
137 if (result == NULL || result->idx < pos->end) { in phpdbg_btree_next()
141 pos->cur = result->idx - 1; in phpdbg_btree_next()
154 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update()
165 (*branch)->branches[!((idx >> i) % 2)] = NULL; in phpdbg_btree_insert_or_update()
166 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update()
175 (*branch)->result.idx = idx; in phpdbg_btree_insert_or_update()
181 int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx) { in phpdbg_btree_delete() argument
192 last_dual_branch_branch = (idx >> i) % 2; in phpdbg_btree_delete()
[all …]
/PHP-7.1/Zend/
H A Dzend_hash.c1451 for (idx = 0; idx < ht->nNumUsed; idx++, p++) { in zend_hash_graceful_destroy()
1504 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply()
1530 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_argument()
1559 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_arguments()
1624 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_copy()
1861 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge()
1881 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge()
1931 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge_ex()
2053 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_internal_pointer_reset_ex()
2427 for (; idx < ht->nNumUsed; idx++) { in zend_hash_minmax()
[all …]
H A Dzend_string.c134 uint idx; in zend_new_interned_string_int() local
144 while (idx != HT_INVALID_IDX) { in zend_new_interned_string_int()
152 idx = Z_NEXT(p->val); in zend_new_interned_string_int()
200 uint idx; in zend_interned_strings_snapshot_int() local
203 idx = CG(interned_strings).nNumUsed; in zend_interned_strings_snapshot_int()
204 while (idx > 0) { in zend_interned_strings_snapshot_int()
205 idx--; in zend_interned_strings_snapshot_int()
217 uint idx; in zend_interned_strings_restore_int() local
220 idx = CG(interned_strings).nNumUsed; in zend_interned_strings_restore_int()
221 while (idx > 0) { in zend_interned_strings_restore_int()
[all …]
H A Dzend_hash.h342 zend_ulong idx; in zend_symtable_add_new() local
357 zend_ulong idx; in zend_symtable_update() local
369 zend_ulong idx; in zend_symtable_update_ind() local
381 zend_ulong idx; in zend_symtable_del() local
393 zend_ulong idx; in zend_symtable_del_ind() local
405 zend_ulong idx; in zend_symtable_find() local
417 zend_ulong idx; in zend_symtable_find_ind() local
429 zend_ulong idx; in zend_symtable_exists() local
441 zend_ulong idx; in zend_symtable_exists_ind() local
453 zend_ulong idx; in zend_symtable_str_update() local
[all …]
/PHP-7.1/ext/pdo/tests/
H A Dpdo_016.phpt28 $stmt2 = $db->prepare('SELECT idx, txt FROM test ORDER by idx');
40 $stmt2->bindColumn('idx', $idx);
45 var_dump(array($idx=>$txt));
56 foreach($cont as $idx => $txt)
58 var_dump(array($idx=>$txt));
61 if ($idx == 0) {
70 if ($idx == 0) {
82 $stmt4->bindColumn('idx', $col1);
84 foreach($cont as $idx => $txt)
86 var_dump(array($idx=>$txt));
[all …]
H A Dpdo_016a.phpt28 $stmt2 = $db->prepare('SELECT idx, txt FROM test ORDER by idx');
40 $stmt2->bindColumn('idx', $idx);
45 var_dump(array($idx=>$txt));
56 foreach($cont as $idx => $txt)
58 var_dump(array($idx=>$txt));
61 if ($idx == 0) {
70 if ($idx == 0) {
82 $stmt4->bindColumn('idx', $col1);
84 foreach($cont as $idx => $txt)
86 var_dump(array($idx=>$txt));
[all …]
/PHP-7.1/ext/standard/tests/file/
H A Duserdirstream.phpt6 public $idx = 0;
10 $this->idx = 0;
18 if ($this->idx >= count($sample)) return false;
19 else return $sample[$this->idx++];
23 $this->idx = 0;
/PHP-7.1/ext/intl/dateformat/
H A Ddateformat_format_object.cpp89 uint32_t idx; in PHP_FUNCTION() local
99 idx = 0; in PHP_FUNCTION()
100 while (idx < ht->nNumUsed) { in PHP_FUNCTION()
101 z = &ht->arData[idx].val; in PHP_FUNCTION()
105 idx++; in PHP_FUNCTION()
107 if (idx >= ht->nNumUsed || !valid_format(z)) { in PHP_FUNCTION()
115 idx++; in PHP_FUNCTION()
116 while (idx < ht->nNumUsed) { in PHP_FUNCTION()
117 z = &ht->arData[idx].val; in PHP_FUNCTION()
121 idx++; in PHP_FUNCTION()
[all …]
/PHP-7.1/ext/xmlreader/tests/
H A D003.phpt11 <books><book num="1" idx="2">book1</book></books>';
37 echo "2nd attr (idx) failed\n";
49 $attr = $reader->moveToAttribute('idx');
53 if ($reader->getAttribute('idx') == $reader->value) {
54 echo "attr idx failed\n";
79 idx: 2
81 idx: 2
83 idx: 2
H A D003-mb.phpt11 <books><book num="1" idx="2">book1</book></books>';
37 echo "2nd attr (idx) failed\n";
49 $attr = $reader->moveToAttribute('idx');
53 if ($reader->getAttribute('idx') == $reader->value) {
54 echo "attr idx failed\n";
79 idx: 2
81 idx: 2
83 idx: 2
/PHP-7.1/ext/pdo_firebird/tests/
H A Dbug_47415.phpt15 $dbh->exec('CREATE TABLE testz (idx int NOT NULL PRIMARY KEY, txt VARCHAR(20))');
19 $query = "SELECT idx, txt FROM testz ORDER by idx";
20 $idx = $txt = 0;
22 $stmt->bindColumn('idx', $idx);
/PHP-7.1/scripts/dev/
H A Dcheck_parameters.php132 function check_param($db, $idx, $exp, $optional, $allow_uninit = false) argument
136 if ($idx >= count($db)) {
142 } elseif ($db[$idx][0] === '**dummy**') {
146 if ($db[$idx][1] != $exp) {
147 error("{$db[$idx][0]}: expected '$exp' but got '{$db[$idx][1]}' [".($idx+1).']');
150 if (!$optional && $db[$idx][2]) {
151 error("not optional var is initialized: {$db[$idx][0]} [".($idx+1).']', 2);
153 if (!$allow_uninit && $optional && !$db[$idx][2]) {
154 error("optional var not initialized: {$db[$idx][0]} [".($idx+1).']', 1);
/PHP-7.1/ext/mysqli/tests/
H A Dmysqli_result_references_mysqlnd.phpt28 $idx = 0;
31 $references[$idx]['row_ref'] = &$row;
32 $references[$idx]['row_copy'] = $row;
33 $references[$idx]['id_ref'] = &$row['id'];
34 $references[$idx++]['id_copy'] = $row['id'];
47 $references[$idx]['row_ref'] = &$rows[$i];
48 $references[$idx]['row_copy'] = $rows[$i];
49 $references[$idx]['id_ref'] = &$rows[$i]['id'];
50 $references[$idx]['id_copy'] = $rows[$i]['id'];
52 $references[$idx]['id_copy_mod']= $rows[$i]['id'] + 0;

Completed in 53 milliseconds

12345