Home
last modified time | relevance | path

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

123

/PHP-5.5/ext/zip/lib/
H A Dzip_unchange.c45 return _zip_unchange(za, idx, 0); in zip_unchange()
55 if (idx >= za->nentry) { in _zip_unchange()
60 if (za->entry[idx].ch_filename) { in _zip_unchange()
65 if (i != -1 && i != idx) { in _zip_unchange()
71 free(za->entry[idx].ch_filename); in _zip_unchange()
72 za->entry[idx].ch_filename = NULL; in _zip_unchange()
75 free(za->entry[idx].ch_extra); in _zip_unchange()
76 za->entry[idx].ch_extra = NULL; in _zip_unchange()
77 za->entry[idx].ch_extra_len = -1; in _zip_unchange()
78 free(za->entry[idx].ch_comment); in _zip_unchange()
[all …]
H A Dzip_replace.c41 zip_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source) in zip_replace() argument
43 if (idx >= za->nentry || source == NULL) { in zip_replace()
48 if (_zip_replace(za, idx, NULL, source) == -1) in zip_replace()
60 _zip_replace(struct zip *za, zip_uint64_t idx, const char *name, in _zip_replace() argument
68 if (idx == ZIP_UINT64_MAX) { in _zip_replace()
72 idx = za->nentry - 1; in _zip_replace()
75 _zip_unchange_data(za->entry+idx); in _zip_replace()
77 if (name && _zip_set_name(za, idx, name) != 0) in _zip_replace()
80 za->entry[idx].state = ((za->cdir == NULL || idx >= za->cdir->nentry) in _zip_replace()
82 za->entry[idx].source = source; in _zip_replace()
[all …]
H A Dzip_get_name.c41 zip_get_name(struct zip *za, zip_uint64_t idx, int flags) in zip_get_name() argument
43 return _zip_get_name(za, idx, flags, &za->error); in zip_get_name()
49 _zip_get_name(struct zip *za, zip_uint64_t idx, int flags, in _zip_get_name() argument
52 if (idx >= za->nentry) { in _zip_get_name()
58 if (za->entry[idx].state == ZIP_ST_DELETED) { in _zip_get_name()
62 if (za->entry[idx].ch_filename) in _zip_get_name()
63 return za->entry[idx].ch_filename; in _zip_get_name()
66 if (za->cdir == NULL || idx >= za->cdir->nentry) { in _zip_get_name()
71 return za->cdir->entry[idx].filename; in _zip_get_name()
H A Dzip_set_name.c44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name) in _zip_set_name() argument
49 if (idx >= za->nentry || name == NULL) { in _zip_set_name()
54 if ((i=_zip_name_locate(za, name, 0, NULL)) != -1 && i != idx) { in _zip_set_name()
60 if (i == idx) in _zip_set_name()
68 if (za->entry[idx].state == ZIP_ST_UNCHANGED) in _zip_set_name()
69 za->entry[idx].state = ZIP_ST_RENAMED; in _zip_set_name()
71 free(za->entry[idx].ch_filename); in _zip_set_name()
72 za->entry[idx].ch_filename = s; in _zip_set_name()
H A Dzip_get_file_comment.c41 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) in zip_get_file_comment() argument
43 if (idx >= za->nentry) { in zip_get_file_comment()
49 || (za->entry[idx].ch_comment_len == -1)) { in zip_get_file_comment()
51 *lenp = za->cdir->entry[idx].comment_len; in zip_get_file_comment()
52 return za->cdir->entry[idx].comment; in zip_get_file_comment()
56 *lenp = za->entry[idx].ch_comment_len; in zip_get_file_comment()
57 return za->entry[idx].ch_comment; in zip_get_file_comment()
H A Dzip_get_file_extra.c41 zip_get_file_extra(struct zip *za, zip_uint64_t idx, int *lenp, int flags) in zip_get_file_extra() argument
43 if (idx >= za->nentry) { in zip_get_file_extra()
49 || (za->entry[idx].ch_extra_len == -1)) { in zip_get_file_extra()
51 *lenp = za->cdir->entry[idx].extrafield_len; in zip_get_file_extra()
52 return za->cdir->entry[idx].extrafield; in zip_get_file_extra()
56 *lenp = za->entry[idx].ch_extra_len; in zip_get_file_extra()
57 return za->entry[idx].ch_extra; in zip_get_file_extra()
H A Dzip_set_file_comment.c43 zip_set_file_comment(struct zip *za, zip_uint64_t idx, in zip_set_file_comment() argument
48 if (idx >= za->nentry in zip_set_file_comment()
67 free(za->entry[idx].ch_comment); in zip_set_file_comment()
68 za->entry[idx].ch_comment = tmpcom; in zip_set_file_comment()
69 za->entry[idx].ch_comment_len = len; in zip_set_file_comment()
H A Dzip_set_file_extra.c43 zip_set_file_extra(struct zip *za, zip_uint64_t idx, in zip_set_file_extra() argument
48 if (idx >= za->nentry in zip_set_file_extra()
67 free(za->entry[idx].ch_extra); in zip_set_file_extra()
68 za->entry[idx].ch_extra = tmpext; in zip_set_file_extra()
69 za->entry[idx].ch_extra_len = len; in zip_set_file_extra()
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].state = ZIP_ST_DELETED; in zip_delete()
H A Dzip_rename.c43 zip_rename(struct zip *za, zip_uint64_t idx, const char *name) in zip_rename() argument
48 if (idx >= za->nentry || name[0] == '\0') { in zip_rename()
58 if ((old_name=zip_get_name(za, idx, 0)) == NULL) in zip_rename()
69 return _zip_set_name(za, idx, name); in zip_rename()
H A Dzip_stat.c43 int idx; in zip_stat() local
45 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_stat()
48 return zip_stat_index(za, idx, flags, st); in zip_stat()
H A Dzip_fopen.c43 int 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, idx, flags, za->default_password); in zip_fopen()
H A Dzip_fopen_encrypted.c44 int idx; in zip_fopen_encrypted() local
46 if ((idx=zip_name_locate(za, fname, flags)) < 0) in zip_fopen_encrypted()
49 return zip_fopen_index_encrypted(za, idx, flags, password); in zip_fopen_encrypted()
/PHP-5.5/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.5/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.5/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.5/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.5/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.5/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;
/PHP-5.5/ext/standard/
H A Dmetaphone.c130 int idx; in Lookahead() local
131 for (idx = 0; word[idx] != '\0' && idx < how_far; idx++); in Lookahead()
134 letter_ahead = word[idx]; /* idx will be either == to how_far or in Lookahead()
/PHP-5.5/Zend/
H A Dzend_hash.h310 #define ZEND_HANDLE_NUMERIC_EX(key, length, idx, func) do { \ in END_EXTERN_C() argument
327 idx = (*tmp - '0'); \ in END_EXTERN_C()
329 idx = (idx * 10) + (*tmp - '0'); \ in END_EXTERN_C()
333 if (idx-1 > LONG_MAX) { /* overflow */ \ in END_EXTERN_C()
336 idx = 0 - idx; \ in END_EXTERN_C()
337 } else if (idx > LONG_MAX) { /* overflow */ \ in END_EXTERN_C()
346 ulong idx; \
348 ZEND_HANDLE_NUMERIC_EX(key, length, idx, return func); \
360 ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx)); in zend_symtable_del()
367 ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData)); in zend_symtable_find()
[all …]
/PHP-5.5/tests/lang/
H A Dbug19943.phpt8 @$ar[$count]['idx'] = "$count";
12 echo $ar[$count]." -- ".@$ar[$count]['idx']."\n";

Completed in 180 milliseconds

123