Home
last modified time | relevance | path

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

12345678910>>...29

/PHP-7.0/ext/mbstring/tests/
H A Dmb_stripos_variation5_Bug45923.phpt2 Test mb_stripos() function : usage variations - Pass different integers as $offset argument
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Test how mb_stripos() behaves when passed different integers as $offset argument
33 * Loop through integers as multiples of ten for $offset argument
34 * mb_stripos should not be able to accept negative values as $offset.
H A Dmb_strpos_variation5.phpt2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Test how mb_strpos() behaves when passed different integers as $offset argument
32 * Loop through integers as multiples of ten for $offset argument
33 * mb_strpos should not be able to accept negative values as $offset.
H A Dmb_strripos_variation5_Bug45923.phpt2 Test mb_strripos() function : usage variations - Pass different integers as $offset argument
10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
17 * Test how mb_strripos() behaves when passed different integers as $offset argument
33 * Loop through integers as multiples of ten for $offset argument
34 * mb_strripos should not be able to accept negative values as $offset.
H A Dmb_stripos_error1.phpt10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
27 $offset = 10;
30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) );
H A Dmb_strripos_error1.phpt10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
27 $offset = 10;
30 var_dump( mb_strripos($haystack, $needle, $offset, $encoding, $extra_arg) );
/PHP-7.0/ext/pdo_mysql/tests/
H A Dpdo_mysql_types.phpt13 …function test_type(&$db, $offset, $sql_type, $value, $ret_value = NULL, $pattern = NULL, $alternat…
24 $stmt->bindValue(1, $offset);
27 printf("[%03d + 1] INSERT failed, %s\n", $offset, var_export($stmt->errorInfo(), true));
36 …printf("[%03d + 2] Fetched result seems wrong, dumping result: %s\n", $offset, var_export($row, tr…
40 if ($row['id'] != $offset) {
41 printf("[%03d + 3] Expecting %s got %s\n", $offset, $row['id']);
48 $offset, $pattern, var_export($row['label'], true));
61 printf("[%03d + 4] %s - input = %s/%s, output = %s/%s (alternative type: %s)\n", $offset,
H A Dpdo_mysql_exec_load_data.phpt33 function exec_and_count($offset, &$db, $sql, $exp) {
40 $offset, $exp, gettype($exp), $ret, gettype($ret), $sql,
54 $offset, $sql, $db->errorCode(), implode(' ', $db->errorInfo()));
91 foreach ($expected as $offset => $exp) {
93 if ($ret[$offset][$key] != $value) {
H A Dpdo_mysql_attr_max_buffer_size.phpt15 function try_buffer_size($offset, $buffer_size) {
46 $offset, $id, substr($val, 0, 10), strlen($val));
52 $offset,
H A Dpdo_mysql_bit.phpt16 function test_type(&$db, $offset, $sql_type, $value, $ret_value = NULL, $pattern = NULL) {
27 $stmt->bindValue(1, $offset);
30 printf("[%03d + 1] INSERT failed, %s\n", $offset, var_export($stmt->errorInfo(), true));
/PHP-7.0/ext/zlib/tests/
H A Dgzseek_error.phpt13 $offset = 1;
17 var_dump(gzseek( $h, $offset, $whence, $extra_arg ) );
/PHP-7.0/ext/standard/tests/strings/
H A Dbug72663.phpt25 Notice: unserialize(): Error at offset 46 of 47 bytes in %sbug72663.php on line %d
27 Notice: unserialize(): Error at offset 79 of 80 bytes in %sbug72663.php on line %d
H A Dstripos_variation15.phpt2 Test stripos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' …
7 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
12 /* Test stripos() function with unexpected inputs for 'haystack', 'needle' & 'offset' arguments */
14 echo "*** Testing stripos() function with unexpected values for haystack, needle & offset ***\n";
92 *** Testing stripos() function with unexpected values for haystack, needle & offset ***
/PHP-7.0/main/streams/
H A Dmemory.c141 if (offset < 0) { in php_stream_memory_seek()
142 if (ms->fpos < (size_t)(-offset)) { in php_stream_memory_seek()
147 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
153 if (ms->fpos + (size_t)(offset) > ms->fsize) { in php_stream_memory_seek()
158 ms->fpos = ms->fpos + offset; in php_stream_memory_seek()
165 if (ms->fsize < (size_t)(offset)) { in php_stream_memory_seek()
170 ms->fpos = offset; in php_stream_memory_seek()
176 if (offset > 0) { in php_stream_memory_seek()
180 } else if (ms->fsize < (size_t)(-offset)) { in php_stream_memory_seek()
185 ms->fpos = ms->fsize + offset; in php_stream_memory_seek()
[all …]
H A Dplain_wrapper.c696 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { in php_stdiop_set_option()
703 range->offset = data->sb.st_size; in php_stdiop_set_option()
788 if (range->length == 0 && range->offset > 0 && range->offset < size) { in php_stdiop_set_option()
789 range->length = size - range->offset; in php_stdiop_set_option()
794 if (range->offset >= size) { in php_stdiop_set_option()
795 range->offset = size; in php_stdiop_set_option()
800 if (range->offset != 0) { in php_stdiop_set_option()
807 delta = (DWORD)range->offset - loffs; in php_stdiop_set_option()
1225 int offset = 0; in php_plain_files_mkdir() local
1236 offset = p - buf + 1; in php_plain_files_mkdir()
[all …]
/PHP-7.0/ext/date/lib/
H A Dtm2unixtime.c414 after = timelib_get_time_zone_info(tz->sse - before->offset, tzi); in do_adjust_timezone()
418 ((tz->sse - after->offset) >= (after->transistion_time + (before->offset - after->offset))) && in do_adjust_timezone()
419 ((tz->sse - after->offset) < after->transistion_time) in do_adjust_timezone()
422 if ((before->offset != after->offset) && !in_transistion) { in do_adjust_timezone()
423 tmp = -after->offset; in do_adjust_timezone()
434 tz->z = gmt_offset->offset; in do_adjust_timezone()
/PHP-7.0/ext/iconv/tests/
H A Diconv_strpos_error1.phpt10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
26 $offset = 10;
29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
/PHP-7.0/ext/gd/libgd/
H A Dgd_gd2.c44 int offset; member
158 if (gdGetInt(&cidx[i].offset, in) != 1) { in _gd2GetHeader()
166 if (cidx[i].offset < 0 || cidx[i].size < 0) { in _gd2GetHeader()
217 static int _gd2ReadChunk (int offset, char *compBuf, int compSize, char *chunkBuf, uLongf * chunkLe… in _gd2ReadChunk() argument
221 if (gdTell(in) != offset) { in _gd2ReadChunk()
222 GD2_DBG(php_gd_error("Positioning in file to %d", offset)); in _gd2ReadChunk()
223 gdSeek(in, offset); in _gd2ReadChunk()
225 GD2_DBG(php_gd_error("Already Positioned in file to %d", offset)); in _gd2ReadChunk()
791 chunkIdx[chunkNum].offset = gdTell(out); in _gdImageGd2()
811 GD2_DBG(php_gd_error("Chunk %d size %d offset %d", x, chunkIdx[x].size, chunkIdx[x].offset)); in _gdImageGd2()
[all …]
/PHP-7.0/ext/gd/tests/
H A Dbug47946.phpt27 function makeFilter($resource, $matrix, $offset = 1.0)
33 return imageconvolution($resource, $matrix, $divisor, $offset);
/PHP-7.0/ext/standard/tests/array/
H A Darray_combine_variation4.phpt93 Warning: Illegal offset type in %s on line %d
95 Warning: Illegal offset type in %s on line %d
97 Warning: Illegal offset type in %s on line %d
99 Warning: Illegal offset type in %s on line %d
101 Warning: Illegal offset type in %s on line %d
H A Darray_slice_variation2.phpt2 Test array_slice() function : usage variations - Pass different data types as $offset arg
7 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
8 * Description: Returns elements specified by offset and length
13 * Pass different data types as $offset argument to array_slice() to test behaviour
41 // unexpected values to be passed to $offset argument
H A Darray_slice_variation4.phpt5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
6 * Description: Returns elements specified by offset and length
18 $offset = 0;
88 var_dump( array_slice($input_array, $offset, $length, $input) );
/PHP-7.0/ext/pdo_oci/
H A Doci_statement.c405 ub4 amt, offset = 1; in oci_stmt_param_hook() local
421 &amt, offset, consume, (ub4) n, in oci_stmt_param_hook()
424 offset += amt; in oci_stmt_param_hook()
440 &amt, offset, consume, (ub4) n, in oci_stmt_param_hook()
639 ub4 offset; member
658 self->offset += amt; in oci_blob_write()
670 &amt, self->offset, buf, (ub4) count, in oci_blob_read()
677 self->offset += amt; in oci_blob_read()
714 if (offset >= PDO_OCI_LOBMAXSIZE) { in oci_blob_seek()
717 self->offset = (ub4) offset + 1; /* Oracle LOBS are 1-based, but PHP is 0-based */ in oci_blob_seek()
[all …]
/PHP-7.0/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt20 …function func_mysqli_stmt_get_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, …
23 printf("[%04d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
33 printf("[%04d] [%d] %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link));
38 printf("[%04d] [%d] %s\n", $offset + 2, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
44 printf("[%04d] [%d] %s\n", $offset + 3, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
51 … printf("[%04d] [%d] %s\n", $offset + 3 + $id, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
61 printf("[%04d] [%d] %s\n", $offset + 7, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
67 printf("[%04d] [%d] %s\n", $offset + 8, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
75 printf("[%04d] [%d] %s\n", $offset + 9, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
87 $offset + 10, $num,
[all …]
H A Dmysqli_poll.phpt63 function poll_async($offset, $link, $links, $errors, $reject, $exp_ready, $use_oo_syntax) {
76 printf("[%03d + 2] Can fetch resultset although no query has been run!\n", $offset);
79 $offset, mysqli_errno($mysqli), mysqli_error($mysqli));
81 … printf("[%03d + 4] Cannot fetch and no error set - non resultset query (no SELECT)!\n", $offset);
87 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
91 $offset, mysqli_thread_id($mysqli), mysqli_errno($mysqli), mysqli_error($mysqli));
/PHP-7.0/ext/com_dotnet/
H A Dcom_handlers.c83 static zval *com_read_dimension(zval *object, zval *offset, int type, zval *rv) in com_read_dimension() argument
96 DISPATCH_METHOD|DISPATCH_PROPERTYGET, &v, 1, offset, 0, 0)) { in com_read_dimension()
101 convert_to_long(offset); in com_read_dimension()
104 if (php_com_safearray_get_elem(&obj->v, &v, (LONG)Z_LVAL_P(offset))) { in com_read_dimension()
109 php_com_saproxy_create(object, rv, offset); in com_read_dimension()
119 static void com_write_dimension(zval *object, zval *offset, zval *value) in com_write_dimension() argument
129 ZVAL_COPY_VALUE(&args[0], offset); in com_write_dimension()
147 convert_to_long(offset); in com_write_dimension()
148 indices = (LONG)Z_LVAL_P(offset); in com_write_dimension()
222 static void com_dimension_delete(zval *object, zval *offset) in com_dimension_delete() argument

Completed in 52 milliseconds

12345678910>>...29