Home
last modified time | relevance | path

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

12345678910>>...28

/PHP-7.4/ext/dom/
H A Dcharacterdata.c31 ZEND_ARG_INFO(0, offset)
40 ZEND_ARG_INFO(0, offset)
45 ZEND_ARG_INFO(0, offset)
178 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_FUNCTION()
252 if (offset < 0 || ZEND_LONG_INT_OVFL(offset) || offset > length) { in PHP_FUNCTION()
259 second = xmlUTF8Strsub(cur, (int)offset, length - (int)offset); in PHP_FUNCTION()
300 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_FUNCTION()
306 if (offset > 0) { in PHP_FUNCTION()
358 …if (offset < 0 || count < 0 || ZEND_LONG_INT_OVFL(offset) || ZEND_LONG_INT_OVFL(count) || offset >… in PHP_FUNCTION()
364 if (offset > 0) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_slice_variation5.phpt33 -- $offset is -7 --
47 -- $offset is -6 --
61 -- $offset is -5 --
75 -- $offset is -4 --
111 -- $offset is 0 --
125 -- $offset is 1 --
137 -- $offset is 2 --
147 -- $offset is 3 --
155 -- $offset is 4 --
161 -- $offset is 5 --
[all …]
H A Darray_splice_variation3.phpt13 function test_splice ($offset, $length)
17 var_dump (array_splice ($input_array,$offset,$length));
117 absolute offset - absolute length - cut from middle
158 absolute offset - absolute length - cut from end
240 absolute offset - absolute length - cut everything
281 absolute offset - absolute length - cut nothing
445 absolute offset - relative length - cut nothing
568 relative offset - absolute length - cut from end
650 relative offset - absolute length - cut everything
691 relative offset - absolute length - cut nothing
[all …]
/PHP-7.4/ext/dom/tests/
H A Dbug67949.phpt27 $offset = ['test'];
28 var_dump($offset);
29 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
30 var_dump($offset);
35 var_dump($offset);
36 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
37 var_dump($offset);
39 $offset = 'test';
40 var_dump($offset);
41 var_dump(isset($nodes[$offset]), $nodes[$offset]->textContent);
[all …]
/PHP-7.4/Zend/tests/
H A Dbug39018.phpt65 Notice: String offset cast occurred in %s on line %d
67 Notice: Uninitialized string offset: %s in %s on line 6
69 Notice: Uninitialized string offset: 0 in %s on line %d
71 Notice: Uninitialized string offset: 0 in %s on line %d
73 Notice: String offset cast occurred in %s on line %d
77 Notice: String offset cast occurred in %s on line %d
81 Notice: Uninitialized string offset: 0 in %s on line %d
93 Notice: String offset cast occurred in %s on line %d
97 Notice: String offset cast occurred in %s on line %d
101 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 Dlist_keyed_evaluation_order.inc25 public function offsetExists($offset): bool {
26 echo "Existence of offset $offset checked for.", PHP_EOL;
27 return isset($this->array[$offset]);
30 public function offsetUnset($offset): void {
31 unset($this->array[$offset]);
32 echo "Offset $offset removed.", PHP_EOL;
35 public function offsetGet($offset) {
36 echo "Offset $offset retrieved.", PHP_EOL;
37 return $this->array[$offset];
40 public function offsetSet($offset, $value): void {
[all …]
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 Dbug68896.phpt7 function offsetGet($offset) {
8 return $this->a[$offset];
10 function offsetSet($offset, $value) {
11 $this->a[$offset] = $value;
13 function offsetExists($offset) {
14 isset($this->a[$offset]);
16 function offsetUnset($offset) {
17 unset($this->a[$offset]);
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 Dbug69955.phpt7 function offsetExists($offset)
9 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
11 function offsetGet($offset)
13 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); return 100;
15 function offsetSet($offset, $value)
17 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); var_dump($value);
19 function offsetUnset($offset)
21 echo "\nInside " . __METHOD__ . "\n"; var_dump($offset);
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);
/PHP-7.4/ext/spl/
H A Dspl_engine.c41 PHPAPI zend_long spl_offset_convert_to_long(zval *offset) /* {{{ */ in spl_offset_convert_to_long() argument
46 switch (Z_TYPE_P(offset)) { in spl_offset_convert_to_long()
48 if (ZEND_HANDLE_NUMERIC(Z_STR_P(offset), idx)) { in spl_offset_convert_to_long()
53 return (zend_long)Z_DVAL_P(offset); in spl_offset_convert_to_long()
55 return Z_LVAL_P(offset); in spl_offset_convert_to_long()
61 offset = Z_REFVAL_P(offset); in spl_offset_convert_to_long()
64 return Z_RES_HANDLE_P(offset); in spl_offset_convert_to_long()
/PHP-7.4/ext/intl/grapheme/
H A Dgrapheme_util.h28 …trrpos_ascii(char *haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset);
30 …*haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int f_ignore_case…
31 …*haystack, size_t haystack_len, char *needle, size_t needle_len, int32_t offset, int *puchar_pos, …
37 int32_t grapheme_get_haystack_offset(UBreakIterator* bi, int32_t offset);
42 …ne OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -o… argument
/PHP-7.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-7.4/ext/hash/sha3/generic32lc/
H A DSnP-Relaned.h21 if ((offset) == 0) { \
31 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
32 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
49 if ((offset) == 0) { \
59 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
60 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
77 if ((offset) == 0) { \
87 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
88 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
105 if ((offset) == 0) { \
[all …]
H A DKeccakP-1600-SnP.h28 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset);
29 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int…
30 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign…
35 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned…
36 … *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int leng…
/PHP-7.4/ext/hash/sha3/generic64lc/
H A DSnP-Relaned.h21 if ((offset) == 0) { \
31 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
32 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
49 if ((offset) == 0) { \
59 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
60 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
77 if ((offset) == 0) { \
87 unsigned int _lanePosition = (offset)/SnP_laneLengthInBytes; \
88 unsigned int _offsetInLane = (offset)%SnP_laneLengthInBytes; \
105 if ((offset) == 0) { \
[all …]
H A DKeccakP-1600-SnP.h35 #define KeccakP1600_AddByte(state, byte, offset) \ argument
36 ((unsigned char*)(state))[(offset)] ^= (byte)
38 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset);
40 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int…
41 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign…
46 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned…
47 … *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int leng…
/PHP-7.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));
/PHP-7.4/Zend/tests/anon/
H A D004.phpt15 public function offsetGet($offset) { return $this->data[$offset]; }
16 public function offsetSet($offset, $data) { return ($this->data[$offset] = $data); }
17 public function offsetUnset($offset) { unset($this->data[$offset]); }
18 public function offsetExists($offset) { return isset($this->data[$offset]); }
/PHP-7.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c340 ms->offset += in match()
808 t = ms->offset; in mprint()
814 t = ms->offset; in mprint()
1305 ms->search.offset = offset; in mcopy()
1355 ms->search.offset = offset; in mcopy()
1448 offset = lhs; in do_ops()
1450 offset = ~offset; in do_ops()
1486 ms->offset = m->offset; in msetoffset()
1489 ms->offset = ms->eoffset + m->offset; in msetoffset()
1508 uint32_t offset = ms->offset; in mget() local
[all …]
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dbase64.c28 b->offset = 0; in buffer_new()
37 b->offset++; in buffer_add()
38 if (b->offset == b->length) { in buffer_add()
41 b->ptr = b->data + b->offset; in buffer_add()
49 b->offset = 0; in buffer_delete()
57 int offset = 0; in base64_encode_xmlrpc() local
80 offset++; in base64_encode_xmlrpc()
81 if (offset > length || offset <= 0) { in base64_encode_xmlrpc()
105 if (!(b->offset % 72)) { in base64_encode_xmlrpc()
119 int offset = 0; in base64_decode_xmlrpc() local
[all …]
/PHP-7.4/ext/standard/tests/serialize/
H A Dinvalid_signs_in_lengths.phpt21 Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
24 Notice: unserialize(): Error at offset 0 of 9 bytes in %s on line %d
27 Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
30 Notice: unserialize(): Error at offset 0 of 7 bytes in %s on line %d
33 Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
36 Notice: unserialize(): Error at offset 0 of 20 bytes in %s on line %d
39 Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
42 Notice: unserialize(): Error at offset 0 of 24 bytes in %s on line %d
45 Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
48 Notice: unserialize(): Error at offset 9 of 15 bytes in %s on line %d
[all …]

Completed in 40 milliseconds

12345678910>>...28