Home
last modified time | relevance | path

Searched refs:offset (Results 51 – 75 of 649) sorted by relevance

12345678910>>...26

/PHP-5.5/ext/standard/tests/file/
H A Dinclude_userstream_002.phpt53 function stream_seek($offset, $whence)
56 return fseek($this->stream, $offset, $whence);
60 if ($offset < $this->data && $offset >= 0) {
61 $this->pos = $offset;
68 if ($offset >= 0) {
69 $this->pos += $offset;
76 if (strlen($this->data) + $offset >= 0) {
77 $this->pos = strlen($this->data) + $offset;
H A Dinclude_streams.phpt67 function stream_seek($offset, $whence)
71 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
72 $this->position = $offset;
79 if ($offset >= 0) {
80 $this->position += $offset;
87 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
88 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Dbug38450_2.phpt48 function stream_seek($offset, $whence)
52 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
53 $this->position = $offset;
61 if ($offset >= 0) {
62 $this->position += $offset;
70 if (strlen($GLOBALS[$this->varname]) + $offset >= 0) {
71 $this->position = strlen($GLOBALS[$this->varname]) + $offset;
H A Duserstreams.phpt130 if ($offset < strlen($GLOBALS[$this->varname]) && $offset >= 0) {
131 $this->position = $offset;
138 if ($offset >= 0) {
139 $this->position += $offset;
214 $offset = rand(0, $DATALEN - 1);
215 $position = $offset;
218 $offset = -rand(0, $DATALEN - 1);
219 $position = $DATALEN + $offset;
222 $offset = rand(0, $DATALEN - 1);
223 $offset -= $position;
[all …]
/PHP-5.5/ext/standard/tests/general_functions/
H A Dparse_ini_basic.data49 [offset values]
50 foo1[] = "basic offset 1"
51 foo1[ ] = "basic offset 2"
52 foo2[123] = "long offset"
53 foo3[abc] = "string offset"
54 foo4[""] = "quoted offset 1"
55 foo4[" "] = "quoted offset 2"
56 foo4["sqfoobar"] = "quoted string offset"
57 foo4['dqfoobar'] = "single quoted offset"
H A Dparse_ini_basic.phpt105 ["offset values"]=>
110 string(14) "basic offset 1"
112 string(14) "basic offset 2"
117 string(11) "long offset"
122 string(13) "string offset"
127 string(15) "quoted offset 1"
129 string(15) "quoted offset 2"
131 string(20) "quoted string offset"
133 string(20) "single quoted offset"
/PHP-5.5/ext/mysqli/tests/
H A Dbug42378.phpt19 $offset,
29 $offset + 1,
42 $offset + 2,
55 $offset,
68 $offset + 1,
75 $offset + 2,
82 $offset + 3,
92 $offset + 4,
99 $offset + 5,
106 $offset + 6,
[all …]
H A Dlocal_infile_tools.inc50 function create_standard_csv($offset, $verbose = true) {
55 printf("[%03d + 1] Cannot create CVS file '%s'\n", $offset, $file);
67 printf("[%03d + 2] Cannot write CVS file '%s'\n", $offset, $file);
75 printf("[%03d + 3] Cannot write CVS file '%s'\n", $offset, $file);
85 $offset, $file);
91 function try_handler($offset, $link, $file, $handler, $expected = null) {
96 printf("[%03d] Cannot set infile handler to '%s'\n", $offset, $handler);
112 $offset + 2,
131 $offset + 5, $k,
137 $offset + 6, $k,
[all …]
H A Dmysqli_stmt_bind_limits.phpt13 function bind_many($offset, $link, $num_params, $rows, $eval = true) {
43 printf("[%03d + 01] [%d] %s\n", $offset, $link->errno, $link->error);
49 printf("[%03d + 02] [%d] %s\n", $offset, $link->errno, $link->error);
53 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm…
60 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error);
70 printf("[%03d + 03] [%d] %s\n", $offset, $stmt->errno, $stmt->error);
75 …printf("[%03d + 03] Parameter count should be %d but got %d\n", $offset, $num_params * $rows, $stm…
80 printf("[%03d + 04] [%d] %s\n", $offset, $stmt->errno, $stmt->error);
88 printf("[%03d + 05] [%d] %s\n", $offset, $link->errno, $link->error);
97 printf("[%03d + 06] [%d] %s\n", $offset, $link->errno, $link->error);
/PHP-5.5/tests/classes/
H A Darray_access_013.phpt8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; }
9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; }
10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); }
11 public function offsetUnset($offset) { throw new Exception(__METHOD__); }
/PHP-5.5/win32/
H A Dreaddir.c51 dp->offset = 0; in opendir()
76 if (dp->offset != 0) { in readdir()
82 dp->offset++; in readdir()
87 dp->dent.d_off = dp->offset; in readdir()
99 if (dp->offset != 0) { in readdir_r()
106 dp->offset++; in readdir_r()
111 dp->dent.d_off = dp->offset; in readdir_r()
146 dp->offset = 0; in rewinddir()
/PHP-5.5/Zend/tests/
H A D036.phpt2 Trying to use lambda in array offset
11 Warning: Illegal offset type in %s on line %d
13 Warning: Illegal offset type in %s on line %d
H A Dlist_006.phpt10 Notice: Undefined offset: 1 in %s on line %d
12 Notice: Undefined offset: 1 in %s on line %d
14 Notice: Undefined offset: 0 in %s on line %d
/PHP-5.5/Zend/
H A Dzend_alloc.h58 ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_L…
59 ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC;
63 ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC…
64 ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
71 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… argument
75 #define safe_erealloc(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset) ZEN… argument
83 #define safe_emalloc_rel(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LIN… argument
88 #define safe_erealloc_rel(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset)… argument
123 …afe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe… argument
127 …nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):saf… argument
H A Dzend_object_handlers.c81 prop_info->offset >= 0 && in rebuild_object_properties()
640 if(offset == NULL) { in zend_std_read_dimension()
642 ALLOC_INIT_ZVAL(offset); in zend_std_read_dimension()
648 zval_ptr_dtor(&offset); in zend_std_read_dimension()
673 if (!offset) { in zend_std_write_dimension()
674 ALLOC_INIT_ZVAL(offset); in zend_std_write_dimension()
679 zval_ptr_dtor(&offset); in zend_std_write_dimension()
693 SEPARATE_ARG_IF_REF(offset); in zend_std_has_dimension()
708 zval_ptr_dtor(&offset); in zend_std_has_dimension()
864 SEPARATE_ARG_IF_REF(offset); in zend_std_unset_dimension()
[all …]
/PHP-5.5/main/streams/
H A Dphp_stream_mmap.h51 size_t offset; member
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mm…
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((str… argument
/PHP-5.5/tests/strings/
H A Doffsets_chaining_5.phpt2 testing the behavior of string offset chaining
20 Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
24 Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d
26 Warning: Illegal string offset 'bar' in %soffsets_chaining_5.php on line %d
/PHP-5.5/ext/dom/
H A Dtext.c33 ZEND_ARG_INFO(0, offset)
153 long offset; in PHP_FUNCTION() local
158 …eters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &id, dom_text_class_entry, &offset) == FAILURE) { in PHP_FUNCTION()
173 if (offset > length || offset < 0) { in PHP_FUNCTION()
178 first = xmlUTF8Strndup(cur, offset); in PHP_FUNCTION()
179 second = xmlUTF8Strsub(cur, offset, length - offset); in PHP_FUNCTION()
/PHP-5.5/ext/spl/
H A Dspl_fixedarray.c350 if (!offset) { in spl_fixedarray_object_read_dimension_helper()
358 index = Z_LVAL_P(offset); in spl_fixedarray_object_read_dimension_helper()
381 if (!offset) { in spl_fixedarray_object_read_dimension()
382 ALLOC_INIT_ZVAL(offset); in spl_fixedarray_object_read_dimension()
387 zval_ptr_dtor(&offset); in spl_fixedarray_object_read_dimension()
409 if (!offset) { in spl_fixedarray_object_write_dimension_helper()
418 index = Z_LVAL_P(offset); in spl_fixedarray_object_write_dimension_helper()
441 if (!offset) { in spl_fixedarray_object_write_dimension()
449 zval_ptr_dtor(&offset); in spl_fixedarray_object_write_dimension()
488 zval_ptr_dtor(&offset); in spl_fixedarray_object_unset_dimension()
[all …]
H A Dspl_array.c309 if (!offset) { in spl_array_get_dimension_ptr_ptr()
318 switch(Z_TYPE_P(offset)) { in spl_array_get_dimension_ptr_ptr()
320 Z_STRVAL_P(offset) = ""; in spl_array_get_dimension_ptr_ptr()
321 Z_STRLEN_P(offset) = 0; in spl_array_get_dimension_ptr_ptr()
384 if (!offset) { in spl_array_read_dimension_ex()
390 zval_ptr_dtor(&offset); in spl_array_read_dimension_ex()
438 if (!offset) { in spl_array_write_dimension_ex()
444 zval_ptr_dtor(&offset); in spl_array_write_dimension_ex()
448 if (!offset) { in spl_array_write_dimension_ex()
514 zval_ptr_dtor(&offset); in spl_array_unset_dimension_ex()
[all …]
/PHP-5.5/ext/standard/tests/strings/
H A Dstrrpos_variation8.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
20 for($offset = -1; $offset <= strlen($haystack); $offset++ ) {
22 var_dump( strrpos($haystack, $needle, $offset) );
/PHP-5.5/ext/pcre/pcrelib/testdata/
H A Dtestoutput268 Failed: character value in \x{} or \o{} is too large at offset 9
11 Failed: character value in \x{} or \o{} is too large at offset 10
15 Error -10 (bad UTF-32 string) offset=0 reason=3
/PHP-5.5/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromsteam.phpt33 function blob_from_stream($offset, $db, $file, $blob) {
38 printf("[%03d + 1] Cannot remove old test file\n", $offset);
44 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file);
51 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file);
60 printf("[%03d + 4] %s\n", $offset, var_export($db->errorInfo(), true));
66 printf("[%03d + 5] Cannot create test file '%s'\n", $offset, $file);
75 $offset,
82 printf("[%03d + 7] Failed to INSERT data, %s\n", $offset, var_export($stmt->errorInfo(), true));
89 printf("[%03d + 8] INSERT and/or SELECT has failed, dumping data.\n", $offset);
102 printf("[%03d + 9] %s\n", $offset, var_export($stmt->errorInfo(), true));
[all …]
/PHP-5.5/ext/standard/tests/array/
H A Darray_slice_variation6.phpt5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
6 * Description: Returns elements specified by offset and length
17 $offset = 1;
21 var_dump(array_slice($input, $offset, $i));
24 var_dump(array_slice($input, $offset, PHP_INT_MAX));
27 var_dump(array_slice($input, $offset, -PHP_INT_MAX));
/PHP-5.5/ext/calendar/tests/
H A Djddayofweek.phpt11 for ($offset = 0; $offset <= 7; $offset++) {
12 echo jddayofweek($jd + $offset, $mode). "\n";

Completed in 61 milliseconds

12345678910>>...26