Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 606) sorted by relevance

12345678910>>...25

/PHP-5.4/ext/standard/tests/array/
H A Darray_slice_variation5.phpt34 -- $offset is -7 --
48 -- $offset is -6 --
62 -- $offset is -5 --
76 -- $offset is -4 --
112 -- $offset is 0 --
126 -- $offset is 1 --
138 -- $offset is 2 --
148 -- $offset is 3 --
156 -- $offset is 4 --
162 -- $offset is 5 --
[all …]
H A Darray_splice_variation3.phpt13 function test_splice ($offset, $length)
17 var_dump (array_splice ($input_array,$offset,$length));
118 absolute offset - absolute length - cut from middle
159 absolute offset - absolute length - cut from end
241 absolute offset - absolute length - cut everything
282 absolute offset - absolute length - cut nothing
446 absolute offset - relative length - cut nothing
569 relative offset - absolute length - cut from end
651 relative offset - absolute length - cut everything
692 relative offset - absolute length - cut nothing
[all …]
/PHP-5.4/ext/dom/
H A Dcharacterdata.c33 ZEND_ARG_INFO(0, offset)
196 if (offset < 0 || count < 0 || offset > length) { in PHP_FUNCTION()
262 long offset; in PHP_FUNCTION() local
279 if (offset < 0 || offset > length) { in PHP_FUNCTION()
286 second = xmlUTF8Strsub(cur, offset, length - offset); in PHP_FUNCTION()
326 if (offset < 0 || count < 0 || offset > length) { in PHP_FUNCTION()
332 if (offset > 0) { in PHP_FUNCTION()
342 second = xmlUTF8Strsub(cur, offset + count, length - offset); in PHP_FUNCTION()
382 if (offset < 0 || count < 0 || offset > length) { in PHP_FUNCTION()
388 if (offset > 0) { in PHP_FUNCTION()
[all …]
/PHP-5.4/Zend/tests/
H A Dbug39018.phpt65 Notice: String offset cast occurred in %s on line %d
67 Notice: Uninitialized string offset: 0 in %s on line %d
69 Notice: Uninitialized string offset: 0 in %s on line %d
71 Notice: String offset cast occurred in %s on line %d
75 Notice: String offset cast occurred in %s on line %d
79 Notice: Uninitialized string offset: 0 in %s on line %d
81 Notice: Uninitialized string offset: 4 in %s on line %d
91 Notice: String offset cast occurred in %s on line %d
95 Notice: String offset cast occurred in %s on line %d
99 Notice: String offset cast occurred in %s on line %d
[all …]
H A Dbug64417.phpt7 public function offsetSet($offset, $value) {
8 if (is_null($offset)) {
11 $this->container[$offset] = $value;
14 public function offsetExists($offset) {
15 return isset($this->container[$offset]);
17 public function offsetUnset($offset) {
18 unset($this->container[$offset]);
20 public function &offsetGet($offset) {
22 if (isset($this->container[$offset])) {
23 $result = &$this->container[$offset];
H A Ddereference_005.phpt17 public function offsetSet($offset, $value) {
18 $this->container[$offset] = $value;
20 public function offsetExists($offset) {
21 return isset($this->container[$offset]);
23 public function offsetUnset($offset) {
24 unset($this->container[$offset]);
26 public function offsetGet($offset) {
27 return isset($this->container[$offset]) ? $this->container[$offset] : null;
H A Dbug32252.phpt8 function offsetExists($offset)
10 echo __METHOD__ . "($offset)\n";
14 function offsetGet($offset)
16 echo __METHOD__ . "($offset)\n";
20 function offsetSet($offset, $value)
22 echo __METHOD__ . "($offset, $value)\n";
26 function offsetUnset($offset)
28 echo __METHOD__ . "($offset)\n";
H A Dbug54367.phpt7 public function offsetSet($offset, $value) { }
8 public function offsetExists($offset) { }
9 public function offsetUnset($offset) { }
11 public function offsetGet ($offset)
13 return function ($var) use ($offset) { // here is the problem
14 var_dump($offset, $var);
H A Dbug30346.phpt9 public function offsetExists( $offset ) { return false; }
10 public function offsetGet( $offset ) { return $offset; }
11 public function offsetSet( $offset, $data ) { }
12 public function offsetUnset( $offset ) { }
H A Dstr_offset_001.phpt2 string offset 001
27 Notice: Uninitialized string offset: -1 in %sstr_offset_001.php on line %d
33 Notice: Uninitialized string offset: 3 in %sstr_offset_001.php on line %d
37 Notice: Uninitialized string offset: 1 in %sstr_offset_001.php on line %d
40 Notice: Uninitialized string offset: -1 in %sstr_offset_001.php on line %d
46 Notice: Uninitialized string offset: 3 in %sstr_offset_001.php on line %d
50 Notice: Uninitialized string offset: 1 in %sstr_offset_001.php on line %d
/PHP-5.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c155 ms->offset = m->offset; in match()
233 ms->offset = m->offset; in match()
1229 offset = ~offset; in mget()
1281 offset = ~offset; in mget()
1333 offset = ~offset; in mget()
1369 offset = ~offset; in mget()
1440 offset = ~offset; in mget()
1511 offset = ~offset; in mget()
1581 offset = ~offset; in mget()
1616 offset = ~offset; in mget()
[all …]
/PHP-5.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_errorinfo.phpt22 $offset, $expected, $code);
46 check_error($offset + 2, $db);
50 check_error($offset + 3, $db);
51 check_error($offset + 4, $stmt);
55 check_error($offset + 5, $db);
64 check_error($offset + 9, $db);
65 check_error($offset + 10, $stmt);
72 check_error($offset + 13, $stmt);
73 check_error($offset + 14, $stmt2);
80 check_error($offset + 17, $stmt);
[all …]
/PHP-5.4/ext/intl/grapheme/
H A Dgrapheme_util.h28 … int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int f_ignore_case…
30 … int32_t haystack_len, unsigned char*needle, int32_t needle_len, int32_t offset, int *puchar_pos, …
40 int grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
42 …d char *haystack, int32_t haystack_len, unsigned char *needle, int32_t needle_len, int32_t offset);
47 …efine OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ?… argument
H A Dgrapheme_util.c174 if(offset != 0) { in grapheme_strpos_utf16()
302 if ( 0 == offset ) { in grapheme_get_haystack_offset()
306 if ( offset < 0 ) { in grapheme_get_haystack_offset()
323 offset += iter_incr; in grapheme_get_haystack_offset()
327 if ( offset != 0 ) { in grapheme_get_haystack_offset()
341 if (offset >= 0) { in grapheme_strrpos_ascii()
342 p = haystack + offset; in grapheme_strrpos_ascii()
346 if (needle_len > -offset) { in grapheme_strrpos_ascii()
349 e = haystack + haystack_len + offset; in grapheme_strrpos_ascii()
357 return (e - p + (offset > 0 ? offset : 0)); in grapheme_strrpos_ascii()
[all …]
/PHP-5.4/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) {} argument
45 * @param [int] $offset The optional offset parameter allows you to specify
50 function grapheme_stripos($haystack, $needle, $offset = 0) {} argument
57 * @param [int] $offset The optional offset parameter allows you to specify
62 function grapheme_strrpos($haystack, $needle, $offset = 0) {} argument
69 * @param [int] $offset The optional offset parameter allows you to specify
74 function grapheme_strripos($haystack, $needle, $offset = 0) {} argument
/PHP-5.4/ext/spl/internal/
H A Dlimititerator.inc27 private $offset;
34 * @param offset Offset to first element
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
57 if ($position < $this->offset) {
58 throw new exception('Cannot seek to '.$position.' which is below offset '.$this->offset);
61 …throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus co…
73 /** Rewind to offset specified in constructor
[all …]
H A Dspldoublylinkedlist.inc195 * @param $offset The offset
201 if (!is_numeric($offset)) {
210 * @param $offset The offset
214 public function offsetGet($offset)
219 $realOffset = $offset;
231 * @param $offset The offset
238 if ($offset === null) {
245 $realOffset = $offset;
257 * @param $offset The offset
261 public function offsetUnset($offset)
[all …]
/PHP-5.4/ext/date/tests/
H A Dbug62896.phpt12 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
15 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
21 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
24 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
29 echo $date->format('Y-m-d H:i:s T').' (offset '.$date->getOffset().")\n";
35 2012-08-21 22:00:00 GMT+0000 (offset 0)
36 2012-08-21 22:00:00 GMT+0000 (offset 0)
38 2012-08-22 00:00:00 CEST (offset 7200)
39 2012-08-22 00:00:00 CEST (offset 7200)
41 2012-08-22 00:00:00 CEST (offset 7200)
[all …]
H A Dbug40861.phpt7 $offset = +60;
9 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
12 $offset = -60;
14 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
17 $offset = -60;
19 $result = date("Y-m-d H:i:s", strtotime("-$offset minutes", $ts));
23 $offset = 60;
25 $result = date("Y-m-d H:i:s", strtotime("+$offset minutes", $ts));
H A D010.phpt16 ["offset"]=>
25 ["offset"]=>
34 ["offset"]=>
43 ["offset"]=>
52 ["offset"]=>
61 ["offset"]=>
/PHP-5.4/ext/spl/
H A Dspl_engine.c46 PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */ in spl_offset_convert_to_long()
48 switch (Z_TYPE_P(offset)) { in spl_offset_convert_to_long()
50 ZEND_HANDLE_NUMERIC(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, idx); in spl_offset_convert_to_long()
53 return (long)Z_DVAL_P(offset); in spl_offset_convert_to_long()
57 return Z_LVAL_P(offset); in spl_offset_convert_to_long()
/PHP-5.4/ext/zip/lib/
H A Dzip_file_get_offset.c57 unsigned int offset; in _zip_file_get_offset() local
59 offset = za->cdir->entry[idx].offset; in _zip_file_get_offset()
61 if (fseeko(za->zp, offset, SEEK_SET) != 0) { in _zip_file_get_offset()
69 offset += LENTRYSIZE + de.filename_len + de.extrafield_len; in _zip_file_get_offset()
73 return offset; in _zip_file_get_offset()
/PHP-5.4/ext/xmlrpc/libxmlrpc/
H A Dbase64.c29 b->offset = 0; in buffer_new()
35 b->offset++; in buffer_add()
36 if (b->offset == b->length) { in buffer_add()
39 b->ptr = b->data + b->offset; in buffer_add()
47 b->offset = 0; in buffer_delete()
55 int offset = 0; in base64_encode_xmlrpc() local
81 offset++; in base64_encode_xmlrpc()
82 if (offset > length) { in base64_encode_xmlrpc()
106 if (!(b->offset % 72)) { in base64_encode_xmlrpc()
120 int offset = 0; in base64_decode_xmlrpc() local
[all …]
/PHP-5.4/ext/standard/tests/serialize/
H A Dbug25378.phpt21 Notice: unserialize(): Error at offset 0 of 8 bytes in %sbug25378.php on line %d
24 Notice: unserialize(): Error at offset 0 of 5 bytes in %sbug25378.php on line %d
27 Notice: unserialize(): Error at offset 13 of 19 bytes in %sbug25378.php on line %d
30 Notice: unserialize(): Error at offset 14 of 19 bytes in %sbug25378.php on line %d
33 Notice: unserialize(): Error at offset 2 of 22 bytes in %sbug25378.php on line %d
36 Notice: unserialize(): Error at offset 17 of 18 bytes in %sbug25378.php on line %d
39 Notice: unserialize(): Error at offset 24 of 33 bytes in %sbug25378.php on line %d
48 Notice: unserialize(): Error at offset 2 of 13 bytes in %sbug25378.php on line %d
51 Notice: unserialize(): Error at offset 2 of 11 bytes in %sbug25378.php on line %d
54 Notice: unserialize(): Error at offset 8 of 9 bytes in %sbug25378.php on line %d
[all …]
/PHP-5.4/ext/standard/tests/file/
H A Dinclude_userstream_001.phpt39 function stream_seek($offset, $whence)
43 if ($offset < $this->data && $offset >= 0) {
44 $this->pos = $offset;
51 if ($offset >= 0) {
52 $this->pos += $offset;
59 if (strlen($this->data) + $offset >= 0) {
60 $this->pos = strlen($this->data) + $offset;

Completed in 35 milliseconds

12345678910>>...25