Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 700) sorted by last modified time

12345678910>>...28

/PHP-7.4/
H A DNEWS285 . Fixed bug #80972 (Memory exhaustion on invalid string offset). (girgias)
716 . Fixed bug #79947 (Memory leak on invalid offset type in compound
777 offset by reference). (Nikita)
2507 ArrayAccess offset). (Rudi Theunissen, Dmitry)
2680 offset"). (Dmitry)
/PHP-7.4/ext/gd/
H A Dgd.c814 ZEND_ARG_INFO(0, offset)
3680 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in php_gdimagecharup()
3684 fline = (c - f->offset) * f->h * f->w; in php_gdimagecharup()
4643 double div, offset; in PHP_FUNCTION() local
4647 if (zend_parse_parameters(ZEND_NUM_ARGS(), "radd", &SIM, &hash_matrix, &div, &offset) == FAILURE) { in PHP_FUNCTION()
4678 res = gdImageConvolution(im_src, matrix, (float)div, (float)offset); in PHP_FUNCTION()
/PHP-7.4/ext/phar/
H A Dphar.c675 zend_long offset; in phar_parse_pharfile() local
1057 offset = halt_offset + manifest_len + 4; in phar_parse_pharfile()
1094 if (offset == halt_offset + manifest_len + 4) { in phar_parse_pharfile()
1130 entry.offset = entry.offset_abs = offset; in phar_parse_pharfile()
1131 offset += entry.compressed_filesize; in phar_parse_pharfile()
2398 entry->offset = entry->offset_abs = in phar_postprocess_file()
2510 zend_long offset; in phar_flush() local
2692 offset = 0; in phar_flush()
3014 offset = php_stream_tell(newfile); in phar_flush()
3049 entry->offset = entry->offset_abs = offset; in phar_flush()
[all …]
H A Dphar_object.c1141 phar_obj = (phar_archive_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
1387 …_object *phar_obj = (phar_archive_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
1684 data->internal_file->offset_abs = data->internal_file->offset = php_stream_tell(p_obj->fp); in phar_build()
1688 php_stream_tell(p_obj->fp) - data->internal_file->offset; in phar_build()
1966 zend_off_t offset; in phar_copy_file_contents() local
1983 offset = php_stream_tell(fp); in phar_copy_file_contents()
2004 entry->offset = offset; in phar_copy_file_contents()
4484 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4535 …object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); \
4548 …y_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
[all …]
/PHP-7.4/ext/pgsql/
H A Dpgsql.c286 ZEND_ARG_INFO(0, offset)
368 ZEND_ARG_INFO(0, offset)
3817 zend_long result, offset = 0, whence = SEEK_CUR; local
3835 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence);
3837 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence);
3840 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence);
3855 zend_long offset = 0; local
3869 offset = lo_tell64((PGconn *)pgsql->conn, pgsql->lofd);
3871 offset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd);
3874 offset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd);
[all …]
/PHP-7.4/ext/filter/
H A Dlogical_filters.c850 int offset = 8 - blocks; in _php_filter_validate_ipv6() local
851 for (i = 7; i > compressed_pos + offset; i--) { in _php_filter_validate_ipv6()
852 ip[i] = ip[i - offset]; in _php_filter_validate_ipv6()
854 for (i = compressed_pos + offset; i >= compressed_pos; i--) { in _php_filter_validate_ipv6()
952 int tokens, length, i, offset, exp_separator_set; in php_filter_validate_mac() local
996 offset = i * (length + 1); in php_filter_validate_mac()
998 if (i < tokens - 1 && input[offset + length] != separator) { in php_filter_validate_mac()
1002 if (php_filter_parse_hex(input + offset, length, &ret) < 0) { in php_filter_validate_mac()
/PHP-7.4/ext/pcre/
H A Dphp_pcre.c2999 ZEND_ARG_INFO(0, offset)
3007 ZEND_ARG_INFO(0, offset)
/PHP-7.4/main/streams/
H A Dstreams.c1309 if (offset > 0 && offset <= stream->writepos - stream->readpos) { in _php_stream_seek()
1311 stream->position += offset; in _php_stream_seek()
1317 if (offset > stream->position && in _php_stream_seek()
1318 offset <= stream->position + stream->writepos - stream->readpos) { in _php_stream_seek()
1319 stream->readpos += offset - stream->position; in _php_stream_seek()
1320 stream->position = offset; in _php_stream_seek()
1338 offset = stream->position + offset; in _php_stream_seek()
1342 ret = stream->ops->seek(stream, offset, whence, &stream->position); in _php_stream_seek()
1359 if (whence == SEEK_CUR && offset >= 0) { in _php_stream_seek()
1362 while (offset > 0) { in _php_stream_seek()
[all …]
/PHP-7.4/Zend/
H A Dzend_closures.c800 void zend_closure_bind_var_ex(zval *closure_zv, uint32_t offset, zval *val) /* {{{ */ in zend_closure_bind_var_ex() argument
804 zval *var = (zval*)((char*)static_variables->arData + offset); in zend_closure_bind_var_ex()
H A Dzend_vm_execute.h6210 offset = Z_REFVAL_P(offset); in ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CONST_HANDLER()
6301 offset = Z_REFVAL_P(offset); in ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_CONST_CONST_HANDLER()
8411 offset = Z_REFVAL_P(offset); in ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_TMPVAR_HANDLER()
8502 offset = Z_REFVAL_P(offset); in ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_CONST_TMPVAR_HANDLER()
9379 offset = Z_REFVAL_P(offset); in ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_UNUSED_HANDLER()
10871 offset = Z_REFVAL_P(offset); in ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CV_HANDLER()
10962 offset = Z_REFVAL_P(offset); in ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_CONST_CV_HANDLER()
15005 offset = Z_REFVAL_P(offset); in ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_TMPVAR_CONST_HANDLER()
16429 offset = Z_REFVAL_P(offset); in ZEND_ISSET_ISEMPTY_DIM_OBJ_SPEC_TMPVAR_TMPVAR_HANDLER()
61142 offset = offset * 3;
[all …]
/PHP-7.4/ext/standard/
H A Darray.c3071 offset = num_in;
3072 } else if (offset < 0 && (offset = (num_in + offset)) < 0) {
3073 offset = 0;
3444 zend_long offset, local
3450 Z_PARAM_LONG(offset)
3474 offset = num_in;
3475 } else if (offset < 0 && (offset = (num_in + offset)) < 0) {
3476 offset = 0;
3513 Z_PARAM_LONG(offset)
3532 } else if (offset < 0 && (offset = (num_in + offset)) < 0) {
[all …]
/PHP-7.4/ext/intl/breakiterator/
H A Dcodepointiterator_internal.cpp191 int32_t CodePointBreakIterator::following(int32_t offset) in following() argument
193 this->lastCodePoint = utext_next32From(this->fText, offset); in following()
201 int32_t CodePointBreakIterator::preceding(int32_t offset) in preceding() argument
203 this->lastCodePoint = utext_previous32From(this->fText, offset); in preceding()
211 UBool CodePointBreakIterator::isBoundary(int32_t offset) in isBoundary() argument
214 utext_setNativeIndex(this->fText, offset); in isBoundary()
215 return (offset == utext_getNativeIndex(this->fText)); in isBoundary()
H A Dcodepointiterator_internal.h72 virtual int32_t following(int32_t offset);
74 virtual int32_t preceding(int32_t offset);
76 virtual UBool isBoundary(int32_t offset);
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2535 if (offset != 0) { in PHP_FUNCTION()
2537 if (offset < 0) { in PHP_FUNCTION()
2538 offset += slen; in PHP_FUNCTION()
2540 if (offset < 0 || offset > slen) { in PHP_FUNCTION()
2627 if (offset != 0) { in PHP_FUNCTION()
2629 if ((offset > 0 && offset > haystack_char_len) || in PHP_FUNCTION()
2630 (offset < 0 && -offset > haystack_char_len)) { in PHP_FUNCTION()
5356 if (offset != 0) { in php_mb_stripos()
5360 if ((offset > 0 && (size_t)offset > haystack_char_len) || in php_mb_stripos()
5361 (offset < 0 && (size_t)(-offset) > haystack_char_len)) { in php_mb_stripos()
[all …]
/PHP-7.4/ext/date/
H A Dphp_date.c1136 offset->offset = (t->z + (t->dst * 3600)); in date_format()
1142 offset->offset = (t->z); in date_format()
1215 localtime ? abs(offset->offset / 3600) : 0, in date_format()
1233 ((offset->offset < 0) ? '-' : '+'), in date_format()
1234 abs(offset->offset / 3600), in date_format()
1235 abs((offset->offset % 3600) / 60) in date_format()
1348 offset->offset = (t->z + (t->dst * 3600)); in php_idate()
1354 offset->offset = (t->z + (t->dst * 3600)); in php_idate()
1719 ta.tm_gmtoff = offset->offset; in php_strftime()
3586 RETVAL_LONG(offset->offset); in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_jit_compile.c2129 int offset; in init_frame() local
5851 if (offset > 0) in fast_forward_first_char2()
6027 offset = -1; in fast_forward_first_n_chars()
6040 offset = i; in fast_forward_first_n_chars()
6043 SLJIT_ASSERT(offset == -1 || (chars[offset].count >= 1 && chars[offset].count <= 2)); in fast_forward_first_n_chars()
6050 fast_forward_first_char2(common, chars[offset].chars[0], chars[offset].chars[1], offset); in fast_forward_first_n_chars()
6102 mask = chars[offset].chars[0] ^ chars[offset].chars[1]; in fast_forward_first_n_chars()
8957 int offset = 0; in compile_ref_matchingpath() local
9124 int offset = 0; in compile_ref_iterator_matchingpath() local
11706 offset <<= 1; in compile_close_matchingpath()
[all …]
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_result.c1838 MYSQLND_METHOD(mysqlnd_res, fetch_field_data)(MYSQLND_RES * result, const unsigned int offset, zval… in MYSQLND_METHOD()
1845 DBG_INF_FMT("offset=%u", offset); in MYSQLND_METHOD()
1858 while (i++ < offset) { in MYSQLND_METHOD()
/PHP-7.4/ext/mysqli/
H A Dmysqli.c582 mysqli_object_handlers.offset = XtOffsetOf(mysqli_object, zo); in PHP_MINIT_FUNCTION()
/PHP-7.4/ext/zip/
H A Dphp_zip.c3042 zip_object_handlers.offset = XtOffsetOf(ze_zip_object, zo);
/PHP-7.4/ext/spl/
H A Dspl_fixedarray.c323 if (!offset) { in spl_fixedarray_object_read_dimension_helper()
331 index = Z_LVAL_P(offset); in spl_fixedarray_object_read_dimension_helper()
359 if (!offset) { in spl_fixedarray_object_read_dimension()
361 offset = &tmp; in spl_fixedarray_object_read_dimension()
366 zval_ptr_dtor(offset); in spl_fixedarray_object_read_dimension()
381 if (!offset) { in spl_fixedarray_object_write_dimension_helper()
415 if (!offset) { in spl_fixedarray_object_write_dimension()
417 offset = &tmp; in spl_fixedarray_object_write_dimension()
424 zval_ptr_dtor(offset); in spl_fixedarray_object_write_dimension()
461 zval_ptr_dtor(offset); in spl_fixedarray_object_unset_dimension()
[all …]
/PHP-7.4/ext/gd/libgd/
H A Dgd.c1473 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageChar()
1476 fline = (c - f->offset) * f->h * f->w; in gdImageChar()
1501 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageCharUp()
1504 fline = (c - f->offset) * f->h * f->w; in gdImageCharUp()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch564 file_magwarn(ms, "offset `%s' invalid", l);
568 - if (m->offset < 0 && cont_level != 0 &&
572 - "negative direct offset `%s' at level %u",
967 m->offset = swap4(CAST(uint32_t, m->offset));
2582 ms->offset = pb->offset;
3384 mdebug(offset, RCAST(char *, RCAST(void *, p)),
3393 offset = do_ops(m, SEXT(sgn,64,BE64(p)), off);
3403 mdebug(offset, RCAST(char *, RCAST(void *, p)),
3572 + zval *match, *offset;
3579 + ms->search.offset += Z_LVAL_P(offset); /* this is where the match starts as size_t */
[all …]
/PHP-7.4/ext/date/lib/
H A Dparse_date.re701 * offset/isdst then */
838 timelib_long offset = 0;
844 offset = timelib_lookup_abbr(ptr, dst, &tz_abbr, &found);
862 retval = offset;
2336 …add_pbf_error(s, TIMELIB_ERR_INVALID_TZ_OFFSET, "Invalid timezone offset in minutes", string, begi…
H A Dparse_date.c840 timelib_long offset = 0; in timelib_parse_zone() local
846 offset = timelib_lookup_abbr(ptr, dst, &tz_abbr, &found); in timelib_parse_zone()
864 retval = offset; in timelib_parse_zone()
/PHP-7.4/ext/curl/
H A Dinterface.c2128 static int seek_cb(void *arg, curl_off_t offset, int origin) /* {{{ */ in seek_cb() argument
2136 res = php_stream_seek(cb_arg->stream, offset, origin); in seek_cb()

Completed in 487 milliseconds

12345678910>>...28