Home
last modified time | relevance | path

Searched refs:offset (Results 176 – 200 of 806) sorted by relevance

12345678910>>...33

/php-src/ext/spl/tests/
H A Dbug73029.phpt22 Error at offset 10 of 19 bytes
24 Warning: unserialize(): Error at offset 22 of 43 bytes in %s on line %d
26 Warning: Trying to access array offset on false in %s on line %d
H A Dbug53362.phpt7 public function offsetSet($offset, $value): void {
8 var_dump($offset);
/php-src/ext/intl/tests/
H A Dtimezone_getErrorCodeMessage_basic.phpt7 /* INF being an invalid offset depends on UB in float->int cast behavior. */
31 Warning: IntlTimeZone::getOffset(): error obtaining offset in %s on line %d
34 string(48) "error obtaining offset: U_ILLEGAL_ARGUMENT_ERROR"
/php-src/sapi/fpm/fpm/
H A Dfpm_trace_mach.c82 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); in fpm_trace_get_long() local
83 vm_offset_t base = (uintptr_t) (addr) - offset; in fpm_trace_get_long()
91 *data = * (long *) (local_page + offset); in fpm_trace_get_long()
/php-src/ext/intl/breakiterator/
H A Dbreakiterator.stub.php77 public function following(int $offset): int {} argument
95 public function isBoundary(int $offset): bool {} argument
101 public function next(?int $offset = null): int {} argument
104 public function preceding(int $offset): int {} argument
H A Dcodepointiterator_internal.cpp189 int32_t CodePointBreakIterator::following(int32_t offset) in following() argument
191 this->lastCodePoint = utext_next32From(this->fText, offset); in following()
199 int32_t CodePointBreakIterator::preceding(int32_t offset) in preceding() argument
201 this->lastCodePoint = utext_previous32From(this->fText, offset); in preceding()
209 UBool CodePointBreakIterator::isBoundary(int32_t offset) in isBoundary() argument
212 utext_setNativeIndex(this->fText, offset); in isBoundary()
213 return (offset == utext_getNativeIndex(this->fText)); in isBoundary()
/php-src/Zend/tests/
H A D036.phpt2 Trying to use lambda in array offset
14 Cannot access offset of type Closure on array
H A Dbug39304.phpt2 Bug #39304 (Segmentation fault with list unpacking of string offset)
10 Warning: Uninitialized string offset 0 in %s on line %d
H A Dinit_array_illegal_offset_type.phpt2 INIT_ARRAY with illegal offset type
15 Cannot access offset of type stdClass on array
H A Dalternative_offset_syntax_in_encaps_string.phpt2 Alternative offset syntax should emit only E_COMPILE_ERROR in string interpolation
6 Fatal error: Array and string offset access syntax with curly braces is no longer supported in %s o…
H A Dalternative_offset_syntax_compile_error_outside_const_expr.phpt2 Alternative offset syntax should emit E_COMPILE_ERROR outside const expression
9 Fatal error: Array and string offset access syntax with curly braces is no longer supported in %s o…
H A Dstr_offset_004.phpt2 string offset 004
44 Warning: Illegal string offset -20 in %s on line %d
49 Warning: Only the first byte will be assigned to the string offset in %s on line %d
H A Dalternative_offset_syntax_compile_error_in_const_expr.phpt2 Alternative offset syntax should emit E_COMPILE_ERROR in const expression
9 Fatal error: Array and string offset access syntax with curly braces is no longer supported in %s o…
H A Dbug79947.phpt2 Bug #79947: Memory leak on invalid offset type in compound assignment
15 Cannot access offset of type array on array
H A Dstr_offset_007.phpt2 string offset 007 indirect string modification by error handler
15 Err: String offset cast occurred
/php-src/ext/shmop/
H A Dshmop.c114 shmop_object_handlers.offset = XtOffsetOf(php_shmop, std); in PHP_MINIT_FUNCTION()
284 zend_long offset; in PHP_FUNCTION() local
288 if (zend_parse_parameters(ZEND_NUM_ARGS(), "OSl", &shmid, shmop_ce, &data, &offset) == FAILURE) { in PHP_FUNCTION()
299 if (offset < 0 || offset > shmop->size) { in PHP_FUNCTION()
304 …e = ((zend_long)ZSTR_LEN(data) < shmop->size - offset) ? (zend_long)ZSTR_LEN(data) : shmop->size -… in PHP_FUNCTION()
305 memcpy(shmop->addr + offset, ZSTR_VAL(data), writesize); in PHP_FUNCTION()
/php-src/ext/mysqli/tests/
H A Dmysqli_fetch_array_large.phpt18 function mysqli_fetch_array_large($offset, $link, $package_size) {
39 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
45 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
52 … $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link));
59 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
65 …printf("[%03d + 5] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_…
71 …printf("[%03d + 6] len = %d, [%d] %s, [%d] %s\n", $offset, $len, mysqli_stmt_errno($stmt), mysqli_…
78 … $offset, $random_char, $label, $len, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
125 $offset = 3;
139 if (!mysqli_fetch_array_large($offset++, $link, $package_size)) {
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c201 static int php_pdosqlite3_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t… in php_pdosqlite3_stream_seek() argument
207 if (offset < 0) { in php_pdosqlite3_stream_seek()
208 if (sqlite3_stream->position < (size_t)(-offset)) { in php_pdosqlite3_stream_seek()
213 sqlite3_stream->position = sqlite3_stream->position + offset; in php_pdosqlite3_stream_seek()
219 if (sqlite3_stream->position + (size_t)(offset) > sqlite3_stream->size) { in php_pdosqlite3_stream_seek()
224 sqlite3_stream->position = sqlite3_stream->position + offset; in php_pdosqlite3_stream_seek()
231 if (sqlite3_stream->size < (size_t)(offset)) { in php_pdosqlite3_stream_seek()
236 sqlite3_stream->position = offset; in php_pdosqlite3_stream_seek()
242 if (offset > 0) { in php_pdosqlite3_stream_seek()
246 } else if (sqlite3_stream->size < (size_t)(-offset)) { in php_pdosqlite3_stream_seek()
[all …]
/php-src/Zend/
H A Dzend_alloc.h67 …LOC void* ZEND_FASTCALL _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC …
68 … ZEND_ATTRIBUTE_MALLOC void* ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset);
73 ZEND_API void* ZEND_FASTCALL _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZE…
74 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
153 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… argument
160 #define safe_erealloc(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset) ZEN… argument
169 #define safe_emalloc_rel(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LIN… argument
176 #define safe_erealloc_rel(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset)… argument
189 …afe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe… argument
202 …nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):saf… argument
/php-src/ext/date/tests/
H A Dtimezone_name_from_abbr_basic1.phpt18 echo "-- Lookup with name and offset--\n";
29 var_dump( timezone_name_from_abbr("", 5400) ); // offset = 1.5 hrs
30 var_dump( timezone_name_from_abbr("", 62400) ); // offset = 24 hrs
40 -- Lookup with name and offset--
/php-src/ext/intl/dateformat/
H A Ddateformat.stub.php156 * @param int $offset
160 public function parse(string $string, &$offset = null): int|float|false {} argument
163 * @param int $offset
168 public function localtime(string $string, &$offset = null): array|false {} argument
/php-src/ext/standard/tests/general_functions/
H A Dparse_ini_basic.phpt109 ["offset values"]=>
114 string(14) "basic offset 1"
116 string(14) "basic offset 2"
121 string(11) "long offset"
126 string(13) "string offset"
131 string(15) "quoted offset 1"
133 string(15) "quoted offset 2"
135 string(20) "quoted string offset"
137 string(20) "single quoted offset"
/php-src/ext/standard/
H A Dtype.c171 int offset = 0; in PHP_FUNCTION() local
173 offset = 1; in PHP_FUNCTION()
176 if (strval[offset] == '0' && (strval[offset + 1] == 'b' || strval[offset + 1] == 'B')) { in PHP_FUNCTION()
182 if (offset) { in PHP_FUNCTION()
187 memcpy(tmpval + offset, strval + offset + 2, strlen - offset); in PHP_FUNCTION()
/php-src/ext/spl/
H A Dspl_array.c261 switch (Z_TYPE_P(offset)) { in get_hash_key()
266 key->key = Z_STR_P(offset); in get_hash_key()
291 key->h = Z_LVAL_P(offset); in get_hash_key()
294 ZVAL_DEREF(offset); in get_hash_key()
308 zval *offset, int type) /* {{{ */ in spl_array_get_dimension_ptr() argument
314 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr()
413 if (!offset) { in spl_array_read_dimension_ex()
415 offset = &tmp; in spl_array_read_dimension_ex()
472 if (!offset) { in spl_array_write_dimension_ex()
474 offset = &tmp; in spl_array_write_dimension_ex()
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Dstr.c284 size_t i, offset, ws_i; in lexbor_str_strip_collapse_whitespace() local
301 ws_i = offset; in lexbor_str_strip_collapse_whitespace()
302 offset++; in lexbor_str_strip_collapse_whitespace()
307 ws_i = offset; in lexbor_str_strip_collapse_whitespace()
310 data[offset] = data[i]; in lexbor_str_strip_collapse_whitespace()
311 offset++; in lexbor_str_strip_collapse_whitespace()
315 if (offset != i) { in lexbor_str_strip_collapse_whitespace()
316 if (offset != 0) { in lexbor_str_strip_collapse_whitespace()
318 offset--; in lexbor_str_strip_collapse_whitespace()
322 data[offset] = 0x00; in lexbor_str_strip_collapse_whitespace()
[all …]

Completed in 43 milliseconds

12345678910>>...33