Home
last modified time | relevance | path

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

1234

/PHP-5.6/ext/zip/lib/
H A Dzip_file_replace.c43 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
70 if (idx == ZIP_UINT64_MAX) { in _zip_file_replace()
81 idx = (zip_uint64_t)i; in _zip_file_replace()
84 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
86 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
94 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
96 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
97 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
98 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
108 za->entry[idx].source = source; in _zip_file_replace()
[all …]
H A Dzip_unchange.c43 zip_unchange(struct zip *za, zip_uint64_t idx) in zip_unchange() argument
45 return _zip_unchange(za, idx, 0); in zip_unchange()
51 _zip_unchange(struct zip *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange() argument
55 if (idx >= za->nentry) { in _zip_unchange()
60 …if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_F… in _zip_unchange()
61 i = _zip_name_locate(za, _zip_get_name(za, idx, ZIP_FL_UNCHANGED, NULL), 0, NULL); in _zip_unchange()
62 if (i >= 0 && (zip_uint64_t)i != idx) { in _zip_unchange()
68 _zip_dirent_free(za->entry[idx].changes); in _zip_unchange()
69 za->entry[idx].changes = NULL; in _zip_unchange()
71 _zip_unchange_data(za->entry+idx); in _zip_unchange()
H A Dzip_extra_field_api.c55 if (_zip_get_dirent(za, idx, 0, NULL) == NULL) in zip_file_extra_field_delete()
66 de = za->entry[idx].changes; in zip_file_extra_field_delete()
100 de = za->entry[idx].changes; in zip_file_extra_field_delete_by_id()
126 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_field_get()
169 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_field_get_by_id()
193 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_fields_count()
222 if (_zip_read_local_ef(za, idx) < 0) in zip_file_extra_fields_count_by_id()
264 de = za->entry[idx].changes; in zip_file_extra_field_set()
344 if (idx >= za->nentry) { in _zip_file_extra_field_prepare_for_change()
349 e = za->entry+idx; in _zip_file_extra_field_prepare_for_change()
[all …]
H A Dzip_dir_add.c49 zip_int64_t idx; in zip_dir_add() local
81 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags); in zip_dir_add()
85 if (idx < 0) in zip_dir_add()
88 …if (zip_file_set_external_attributes(za, (zip_uint64_t)idx, 0, ZIP_OPSYS_DEFAULT, ZIP_EXT_ATTRIB_D… in zip_dir_add()
89 zip_delete(za, (zip_uint64_t)idx); in zip_dir_add()
94 return idx; in zip_dir_add()
H A Dzip_delete.c41 zip_delete(struct zip *za, zip_uint64_t idx) in zip_delete() argument
43 if (idx >= za->nentry) { in zip_delete()
55 if (_zip_unchange(za, idx, 1) != 0) in zip_delete()
58 za->entry[idx].deleted = 1; in zip_delete()
H A Dzip_add_entry.c47 zip_uint64_t idx; in _zip_add_entry() local
62 idx = za->nentry++; in _zip_add_entry()
64 _zip_entry_init(za->entry+idx); in _zip_add_entry()
66 return (zip_int64_t)idx; in _zip_add_entry()
H A Dzip_get_name.c43 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags) in zip_get_name() argument
45 return _zip_get_name(za, idx, flags, &za->error); in zip_get_name()
51 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error) in _zip_get_name() argument
56 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL) in _zip_get_name()
H A Dzip_file_rename.c43 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) in zip_file_rename() argument
48 if (idx >= za->nentry || (name != NULL && strlen(name) > ZIP_UINT16_MAX)) { in zip_file_rename()
58 if ((old_name=zip_get_name(za, idx, 0)) == NULL) in zip_file_rename()
69 return _zip_set_name(za, idx, name, flags); in zip_file_rename()
H A Dzip_stat.c43 zip_int64_t idx; in zip_stat() local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_stat()
48 return zip_stat_index(za, (zip_uint64_t)idx, flags, st); in zip_stat()
H A Dzip_fopen.c43 zip_int64_t idx; in zip_fopen() local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen()
48 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password); in zip_fopen()
H A Dzip_fopen_encrypted.c43 zip_int64_t idx; in zip_fopen_encrypted() local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen_encrypted()
48 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password); in zip_fopen_encrypted()
H A Dzip_set_name.c44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) in _zip_set_name() argument
51 if (idx >= za->nentry) { in _zip_set_name()
72 if ((i=_zip_name_locate(za, name, 0, NULL)) >= 0 && (zip_uint64_t)i != idx) { in _zip_set_name()
79 if (i>=0 && (zip_uint64_t)i == idx) { in _zip_set_name()
84 e = za->entry+idx; in _zip_set_name()
H A Dzip_rename.c44 zip_rename(struct zip *za, zip_uint64_t idx, const char *name) in zip_rename() argument
46 return zip_file_rename(za, idx, name, 0); in zip_rename()
H A Dzip_replace.c42 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) in zip_replace() argument
44 return zip_file_replace(za, idx, source, 0); in zip_replace()
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_btree.h27 zend_ulong idx; member
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_BT… argument
62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument
63 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG… argument
H A Dphpdbg_btree.c48 if ((idx >> i) % 2 == 1) { in phpdbg_btree_find()
89 CHOOSE_BRANCH((idx >> i) % 2 == 1 && branch->branches[1]); in phpdbg_btree_find_closest()
100 if (had_alternative_branch || (idx >> i) % 2 == 1) { in phpdbg_btree_find_closest()
131 if (result == NULL || result->idx < pos->end) { in phpdbg_btree_next()
135 pos->cur = result->idx - 1; in phpdbg_btree_next()
148 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update()
159 (*branch)->branches[!((idx >> i) % 2)] = NULL; in phpdbg_btree_insert_or_update()
160 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update()
169 (*branch)->result.idx = idx; in phpdbg_btree_insert_or_update()
186 last_dual_branch_branch = (idx >> i) % 2; in phpdbg_btree_delete()
[all …]
/PHP-5.6/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 …]
H A Dpdo_019.phpt17 $db->exec('CREATE TABLE test(idx int NOT NULL PRIMARY KEY, txt VARCHAR(20))');
26 $stmt = $db->prepare('SELECT idx, txt FROM test ORDER by idx');
34 $stmt->bindColumn('idx', $idx);
39 var_dump(array($idx=>$txt));
/PHP-5.6/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-5.6/scripts/dev/
H A Dcheck_parameters.php138 function check_param($db, $idx, $exp, $optional) argument
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+1).']', 1);
159 } elseif (!$optional && $db[$idx][2]) {
160 error("not optional var is initialized: {$db[$idx][0]} [".($idx+1).']', 2);
/PHP-5.6/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
/PHP-5.6/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-5.6/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;
H A Dmysqli_result_references.phpt20 $idx = 0;
23 $references[$idx] = array(
26 $references[$idx++]['id'] += 0;
34 $references[$idx] = array(
37 $references[$idx++]['id'] += 0;
52 $references[$idx] = array(
55 $references[$idx]['id2'] = &$references[$idx]['id'];
56 $references[$idx]['id'] += 1;
57 $references[$idx++]['id2'] += 1;
60 $references[$idx++] = &$res;

Completed in 35 milliseconds

1234