Searched refs:offset (Results 1 - 25 of 212) sorted by relevance

123456789

/PHP_TRUNK/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc42 var $offset = 0;
164 private function getCentralEntry($compmethod, $mtime, $crc32, $complength, $uncomplength, $filename, $comment, $corrupt, &$offset, $fakecomp)
172 0x0000, $this->offset).
174 $offset = strlen($central);
180 0x0000, $this->offset).
182 $offset = strlen($central);
188 0x0000, $this->offset).
190 $offset = strlen($central);
196 0x0000, $this->offset).
198 $offset
[all...]
/PHP_TRUNK/ext/spl/internal/
H A Dlimititerator.inc18 * A class that starts iteration at a certain offset and only iterates over
27 private $offset;
34 * @param offset Offset to first element
37 function __construct(Iterator $it, $offset = 0, $count = -1)
39 if ($offset < 0) {
40 throw new exception('Parameter offset must be > 0');
46 $this->offset = $offset;
52 * @param position offset to seek to (relative to beginning not offset
[all...]
H A Dspldoublylinkedlist.inc193 /** @return whether a certain offset exists in the DLL
195 * @param $offset The offset
196 * @throw OutOfRangeException If the offset is either invalid or out of
199 public function offsetExists($offset)
201 if (!is_numeric($offset)) {
204 return array_key_exists($offset, $this->_llist);
208 /** @return the data at a certain offset in the DLL
210 * @param $offset The offset
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dbase64.c29 b->offset = 0;
35 b->offset++;
36 if (b->offset == b->length) {
39 b->ptr = b->data + b->offset;
47 b->offset = 0;
55 int offset = 0; local
81 offset++;
82 if (offset > length) {
106 if (!(b->offset % 72)) {
120 int offset local
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_trace_mach.c85 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); local
86 vm_offset_t base = (uintptr_t) (addr) - offset;
94 *data = * (long *) (local_page + offset);
/PHP_TRUNK/win32/
H A Dflock.c59 OVERLAPPED offset = local
64 UnlockFileEx(hdl, 0, low, high, &offset);
69 0, low, high, &offset))
74 0, low, high, &offset))
H A Dreaddir.c51 dp->offset = 0;
76 if (dp->offset != 0) {
82 dp->offset++;
87 dp->dent.d_off = dp->offset;
99 if (dp->offset != 0) {
106 dp->offset++;
111 dp->dent.d_off = dp->offset;
146 dp->offset = 0;
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dstrcut.c31 int offset, length; local
36 fprintf(stderr, "Usage: %s lang encoding offset length\n", argv[0]);
53 offset = strtol(argv[3], NULL, 10);
55 printf("Invalid offset: %s\n", argv[3]);
103 if (mbfl_strcut(&string, &result, offset, length)) {
/PHP_TRUNK/ext/intl/doc/
H A Dgrapheme_api.php33 * @param [int] $offset The optional offset parameter allows you to specify
38 function grapheme_strpos($haystack, $needle, $offset = 0) {}
45 * @param [int] $offset The optional offset parameter allows you to specify
50 function grapheme_stripos($haystack, $needle, $offset = 0) {}
57 * @param [int] $offset The optional offset parameter allows you to specify
62 function grapheme_strrpos($haystack, $needle, $offset = 0) {}
69 * @param [int] $offset Th
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_file_get_offset.c2 zip_file_get_offset.c -- get offset of file data in archive.
50 Returns the offset of the file data for entry ze.
58 zip_uint64_t offset;
61 offset = za->entry[idx].orig->offset;
63 if (fseeko(za->zp, (off_t)offset, SEEK_SET) != 0) {
72 if (offset+(zip_uint32_t)size > ZIP_OFF_MAX) {
77 return offset + (zip_uint32_t)size;
56 zip_uint64_t offset; local
H A Dzip_open.c244 if ((zip_uint64_t)cd->offset+(zip_uint64_t)cd->size > (zip_uint64_t)buf_offset + (zip_uint64_t)(eocd-buf)) {
264 if (cd->offset >= buf_offset) {
266 cdp = buf + (cd->offset - buf_offset);
273 fseeko(fp, cd->offset, SEEK_SET);
274 /* possible consistency check: cd->offset =
276 if (ferror(fp) || (ftello(fp) != cd->offset)) {
277 /* seek error or offset of cdir wrong */
323 max = cd->entry[0].orig->offset;
324 min = cd->entry[0].orig->offset;
330 if (cd->entry[i].orig->offset < mi
603 zip_uint64_t i, nentry, size, offset; local
657 zip_uint64_t offset; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c44 int offset = op_array->last_var; local
67 start_of_T[VAR_NUM(ZEND_RESULT(opline).var) - offset] = opline;
73 start_of_T[VAR_NUM(ZEND_OP1(opline).var) - offset] = opline;
76 start_of_T[VAR_NUM(ZEND_OP1(opline).var) + 1 - offset] = opline;
96 ZEND_OP1(opline).var = NUM_VAR(max + offset);
102 currT = VAR_NUM(ZEND_OP1(opline).var) - offset;
108 ZEND_OP1(opline).var = NUM_VAR(map_T[currT] + offset);
120 currT = VAR_NUM(ZEND_OP2(opline).var) - offset;
126 ZEND_OP2(opline).var = NUM_VAR(map_T[currT] + offset);
131 currT = VAR_NUM(opline->extended_value) - offset;
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dsoftmagic.c130 const unsigned char *s, size_t nbytes, size_t offset, int mode, int text,
164 ms->offset = m->offset;
168 switch (mget(ms, s, m, nbytes, offset, cont_level, mode, text,
244 ms->offset = m->offset;
246 ms->offset +=
257 switch (mget(ms, s, m, nbytes, offset, cont_level, mode,
408 t = ms->offset + sizeof(char);
430 t = ms->offset
129 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, const unsigned char *s, size_t nbytes, size_t offset, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) argument
1034 mdebug(uint32_t offset, const char *str, size_t len) argument
1043 mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) argument
1164 uint32_t soffset, offset = ms->offset; local
2126 zval *match, *offset; local
[all...]
/PHP_TRUNK/ext/dom/
H A Dcharacterdata.c33 ZEND_ARG_INFO(0, offset)
42 ZEND_ARG_INFO(0, offset)
47 ZEND_ARG_INFO(0, offset)
52 ZEND_ARG_INFO(0, offset)
149 /* {{{ proto string dom_characterdata_substring_data(int offset, int count);
159 zend_long offset, count; local
163 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oll", &id, dom_characterdata_class_entry, &offset, &count) == FAILURE) {
176 if (offset < 0 || count < 0 || offset > length) {
182 if ((offset
242 zend_long offset; local
290 zend_long offset, count; local
346 zend_long offset, count; local
[all...]
H A Dtext.c33 ZEND_ARG_INFO(0, offset)
140 /* {{{ proto DOMText dom_text_split_text(int offset);
152 zend_long offset; local
156 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &id, dom_text_class_entry, &offset) == FAILURE) {
171 if (offset > length || offset < 0) {
176 first = xmlUTF8Strndup(cur, offset);
177 second = xmlUTF8Strsub(cur, offset, length - offset);
239 * c-basic-offset
[all...]
/PHP_TRUNK/ext/intl/breakiterator/
H A Dcodepointiterator_internal.h65 virtual int32_t following(int32_t offset);
67 virtual int32_t preceding(int32_t offset);
69 virtual UBool isBoundary(int32_t offset);
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.c131 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int32_t *puchar_pos, int f_ignore_case, int last TSRMLS_DC) argument
154 /* get a pointer to the haystack taking into account the offset */
174 if(offset != 0) {
175 offset_pos = grapheme_get_haystack_offset(bi, offset);
178 STRPOS_CHECK_STATUS(status, "Invalid search offset");
182 STRPOS_CHECK_STATUS(status, "Invalid search offset");
189 /* last one is beyound our start offset */
295 /* {{{ grapheme_get_haystack_offset - bump the haystack pointer based on the grapheme count offset */
296 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset) argument
302 if ( 0 == offset ) {
337 grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset) argument
[all...]
H A Dgrapheme_util.h28 int grapheme_strrpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case TSRMLS_DC);
30 int grapheme_strpos_utf16(unsigned char *haystack, int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int *puchar_pos, int f_ignore_case, int last TSRMLS_DC);
40 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
42 int32_t grapheme_strrpos_ascii(unsigned char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
46 /* OUTSIDE_STRING: check if (possibly negative) long offset is outside the string with int32_t length */
47 #define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (zend_lon
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_engine.c43 PHPAPI zend_long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */
47 switch (Z_TYPE_P(offset)) {
49 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) {
54 return (zend_long)Z_DVAL_P(offset);
56 return Z_LVAL_P(offset);
62 return Z_RES_HANDLE_P(offset);
71 * c-basic-offset: 4
H A Dspl_fixedarray.c329 static inline zval *spl_fixedarray_object_read_dimension_helper(spl_fixedarray_object *intern, zval *offset TSRMLS_DC) /* {{{ */
335 if (!offset) {
340 if (Z_TYPE_P(offset) != IS_LONG) {
341 index = spl_offset_convert_to_long(offset TSRMLS_CC);
343 index = Z_LVAL_P(offset);
357 static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, int type, zval *rv TSRMLS_DC) /* {{{ */ argument
365 if (!offset) {
367 offset = &tmp;
369 SEPARATE_ARG_IF_REF(offset);
371 zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_get, "offsetGet", &rv, offset);
385 spl_fixedarray_object_write_dimension_helper(spl_fixedarray_object *intern, zval *offset, zval *value TSRMLS_DC) argument
414 spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value TSRMLS_DC) argument
477 spl_fixedarray_object_has_dimension_helper(spl_fixedarray_object *intern, zval *offset, int check_empty TSRMLS_DC) argument
508 spl_fixedarray_object_has_dimension(zval *object, zval *offset, int check_empty TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dflock_compat.c126 OVERLAPPED offset =
131 UnlockFileEx(hdl, 0, low, high, &offset);
136 0, low, high, &offset))
141 0, low, high, &offset))
235 * c-basic-offset: 4
H A Dmicrotime.c71 timelib_time_offset *offset; local
73 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info(TSRMLS_C));
79 add_assoc_long(return_value, "minuteswest", -offset->offset / SEC_IN_MIN);
80 add_assoc_long(return_value, "dsttime", offset->is_dst);
82 timelib_time_offset_dtor(offset);
162 * c-basic-offset: 4
/PHP_TRUNK/main/streams/
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC) argument
29 range.offset = offset;
71 * c-basic-offset: 4
H A Dphp_stream_mmap.h33 /* Request a range and offset to be mapped;
49 /* requested offset and length.
51 size_t offset; member in struct:__anon305
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC);
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len) TSRMLS_CC)
84 * c-basic-offset: 4
/PHP_TRUNK/Zend/
H A Dzend_multiply.h117 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
126 "rm"(offset));
138 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
155 "rm"(offset));
168 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
177 "0"(offset),
190 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
199 "r"(offset));
211 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
213 uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset;
225 zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
[all...]

Completed in 14 milliseconds

123456789