/PHP-7.0/ext/zip/lib/ |
H A D | zip_file_replace.c | 41 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 D | zip_unchange.c | 41 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 D | zip_extra_field_api.c | 53 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 D | zip_delete.c | 39 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 D | zip_dir_add.c | 47 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 D | zip_get_name.c | 41 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 D | zip_file_rename.c | 41 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 D | zip_stat.c | 41 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 D | zip_fopen.c | 41 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 D | zip_fopen_encrypted.c | 41 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 D | zip_add_entry.c | 45 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.0/sapi/phpdbg/ |
H A D | phpdbg_btree.h | 27 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 D | phpdbg_btree.c | 48 if ((idx >> i) % 2 == 1) { in phpdbg_btree_find() 76 if ((idx >> i) % 2 == 0) { in phpdbg_btree_find_closest() 134 if (result == NULL || result->idx < pos->end) { in phpdbg_btree_next() 138 pos->cur = result->idx - 1; in phpdbg_btree_next() 151 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update() 162 (*branch)->branches[!((idx >> i) % 2)] = NULL; in phpdbg_btree_insert_or_update() 163 branch = &(*branch)->branches[(idx >> i) % 2]; in phpdbg_btree_insert_or_update() 172 (*branch)->result.idx = idx; in phpdbg_btree_insert_or_update() 178 int phpdbg_btree_delete(phpdbg_btree *tree, zend_ulong idx) { in phpdbg_btree_delete() argument 189 last_dual_branch_branch = (idx >> i) % 2; in phpdbg_btree_delete() [all …]
|
/PHP-7.0/Zend/ |
H A D | zend_hash.c | 1480 for (idx = 0; idx < ht->nNumUsed; idx++, p++) { in zend_hash_graceful_destroy() 1534 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply() 1560 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_argument() 1589 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_arguments() 1653 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_copy() 1890 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge() 1910 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge() 1960 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge_ex() 2073 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_internal_pointer_reset_ex() 2450 for (; idx < ht->nNumUsed; idx++) { in zend_hash_minmax() [all …]
|
H A D | zend_string.c | 83 uint idx; in zend_new_interned_string_int() local 93 while (idx != HT_INVALID_IDX) { in zend_new_interned_string_int() 101 idx = Z_NEXT(p->val); in zend_new_interned_string_int() 155 uint idx; in zend_interned_strings_snapshot_int() local 158 idx = CG(interned_strings).nNumUsed; in zend_interned_strings_snapshot_int() 159 while (idx > 0) { in zend_interned_strings_snapshot_int() 160 idx--; in zend_interned_strings_snapshot_int() 172 uint idx; in zend_interned_strings_restore_int() local 175 idx = CG(interned_strings).nNumUsed; in zend_interned_strings_restore_int() 176 while (idx > 0) { in zend_interned_strings_restore_int() [all …]
|
H A D | zend_hash.h | 315 zend_ulong idx; in zend_symtable_add_new() local 330 zend_ulong idx; in zend_symtable_update() local 342 zend_ulong idx; in zend_symtable_update_ind() local 354 zend_ulong idx; in zend_symtable_del() local 366 zend_ulong idx; in zend_symtable_del_ind() local 378 zend_ulong idx; in zend_symtable_find() local 390 zend_ulong idx; in zend_symtable_find_ind() local 402 zend_ulong idx; in zend_symtable_exists() local 414 zend_ulong idx; in zend_symtable_exists_ind() local 426 zend_ulong idx; in zend_symtable_str_update() local [all …]
|
/PHP-7.0/ext/pdo/tests/ |
H A D | pdo_016.phpt | 28 $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 D | pdo_016a.phpt | 28 $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.0/ext/standard/tests/file/ |
H A D | userdirstream.phpt | 6 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.0/ext/xmlreader/tests/ |
H A D | 003.phpt | 11 <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.0/ext/intl/dateformat/ |
H A D | dateformat_format_object.cpp | 89 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.0/ext/pdo_firebird/tests/ |
H A D | bug_47415.phpt | 15 $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.0/scripts/dev/ |
H A D | check_parameters.php | 132 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.0/ext/mysqli/tests/ |
H A D | mysqli_result_references_mysqlnd.phpt | 28 $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 D | mysqli_result_references.phpt | 20 $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;
|