/PHP-7.2/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.2/sapi/phpdbg/ |
H A D | phpdbg_btree.h | 27 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 D | phpdbg_btree.c | 51 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.2/Zend/ |
H A D | zend_hash.c | 1452 for (idx = 0; idx < ht->nNumUsed; idx++, p++) { in zend_hash_graceful_destroy() 1505 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply() 1531 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_argument() 1560 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_apply_with_arguments() 1625 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_copy() 1862 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge() 1882 for (idx = 0; idx < source->nNumUsed; idx++) { in _zend_hash_merge() 1932 for (idx = 0; idx < source->nNumUsed; idx++) { in zend_hash_merge_ex() 2054 for (idx = 0; idx < ht->nNumUsed; idx++) { in zend_hash_internal_pointer_reset_ex() 2428 for (; idx < ht->nNumUsed; idx++) { in zend_hash_minmax() [all …]
|
H A D | zend_hash.h | 351 zend_ulong idx; in zend_symtable_add_new() local 362 zend_ulong idx; in zend_symtable_update() local 374 zend_ulong idx; in zend_symtable_update_ind() local 386 zend_ulong idx; in zend_symtable_del() local 398 zend_ulong idx; in zend_symtable_del_ind() local 410 zend_ulong idx; in zend_symtable_find() local 422 zend_ulong idx; in zend_symtable_find_ind() local 434 zend_ulong idx; in zend_symtable_exists() local 446 zend_ulong idx; in zend_symtable_exists_ind() local 458 zend_ulong idx; in zend_symtable_str_update() local [all …]
|
/PHP-7.2/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.2/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.2/ext/mysqli/tests/ |
H A D | mysqli_result_references_mysqlnd.phpt | 24 $idx = 0; 27 $references[$idx]['row_ref'] = &$row; 28 $references[$idx]['row_copy'] = $row; 29 $references[$idx]['id_ref'] = &$row['id']; 30 $references[$idx++]['id_copy'] = $row['id']; 43 $references[$idx]['row_ref'] = &$rows[$i]; 44 $references[$idx]['row_copy'] = $rows[$i]; 45 $references[$idx]['id_ref'] = &$rows[$i]['id']; 46 $references[$idx]['id_copy'] = $rows[$i]['id']; 48 $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;
|
/PHP-7.2/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.2/ext/xmlreader/tests/ |
H A D | 003-mb.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
|
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.2/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.2/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);
|