Home
last modified time | relevance | path

Searched refs:offset (Results 226 – 250 of 762) sorted by last modified time

12345678910>>...31

/PHP-7.2/ext/spl/tests/
H A Dbug53362.phpt7 public function offsetSet($offset, $value) {
8 var_dump($offset);
H A DSplFixedArray_offsetUnset_string.phpt2 Check removing an item from an array when the offset is not an integer.
H A DSplDoublyLinkedList_add_invalid_offset.phpt2 Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
H A DSplDoublyLinkedList_add_null_offset.phpt2 Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
/PHP-7.2/ext/spl/
H A Dspl_fixedarray.c321 if (!offset) { in spl_fixedarray_object_read_dimension_helper()
353 zval_ptr_dtor(offset); in spl_fixedarray_object_read_dimension()
366 if (!offset) { in spl_fixedarray_object_read_dimension()
368 offset = &tmp; in spl_fixedarray_object_read_dimension()
373 zval_ptr_dtor(offset); in spl_fixedarray_object_read_dimension()
388 if (!offset) { in spl_fixedarray_object_write_dimension_helper()
421 if (!offset) { in spl_fixedarray_object_write_dimension()
423 offset = &tmp; in spl_fixedarray_object_write_dimension()
430 zval_ptr_dtor(offset); in spl_fixedarray_object_write_dimension()
467 zval_ptr_dtor(offset); in spl_fixedarray_object_unset_dimension()
[all …]
H A Dspl_heap.c1207 spl_handler_SplHeap.offset = XtOffsetOf(spl_heap_object, std); in PHP_MINIT_FUNCTION()
1229 spl_handler_SplPriorityQueue.offset = XtOffsetOf(spl_heap_object, std); in PHP_MINIT_FUNCTION()
H A Dspl_observer.c1255 spl_handler_SplObjectStorage.offset = XtOffsetOf(spl_SplObjectStorage, std); in PHP_MINIT_FUNCTION()
H A Dspl_iterators.c1471 intern->u.limit.offset = 0; /* start at beginning */ in spl_dual_it_construct()
1473 …ters_throw(ZEND_NUM_ARGS(), "O|ll", &zobject, ce_inner, &intern->u.limit.offset, &intern->u.limit.… in spl_dual_it_construct()
1476 if (intern->u.limit.offset < 0) { in spl_dual_it_construct()
2481 …if (intern->u.limit.count != -1 && intern->current.pos >= intern->u.limit.offset + intern->u.limit… in spl_limit_it_valid()
2493 if (pos < intern->u.limit.offset) { in spl_limit_it_seek()
2497 if (pos >= intern->u.limit.offset + intern->u.limit.count && intern->u.limit.count != -1) { in spl_limit_it_seek()
2542 spl_limit_it_seek(intern, intern->u.limit.offset); in SPL_METHOD()
2566 …if (intern->u.limit.count == -1 || intern->current.pos < intern->u.limit.offset + intern->u.limit.… in SPL_METHOD()
2607 ZEND_ARG_INFO(0, offset)
3711 spl_handlers_rec_it_it.offset = XtOffsetOf(spl_recursive_it_object, std); in PHP_MINIT_FUNCTION()
[all …]
H A Dspl_iterators.h142 zend_long offset; member
H A Dspl_dllist.c170 static spl_ptr_llist_element *spl_ptr_llist_offset(spl_ptr_llist *llist, zend_long offset, int back… in spl_ptr_llist_offset() argument
182 while (current && pos < offset) { in spl_ptr_llist_offset()
1396 spl_handler_SplDoublyLinkedList.offset = XtOffsetOf(spl_dllist_object, std); in PHP_MINIT_FUNCTION()
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()
H A Dspl_engine.h30 PHPAPI zend_long spl_offset_convert_to_long(zval *offset);
H A Dspl.php488 function offsetSet($offset, $value); argument
493 function offsetGet($offset); argument
497 function offsetUnset($offset); argument
502 function offsetExists($offset); argument
H A Dspl_array.c298 if (!offset || Z_ISUNDEF_P(offset) || !ht) { in spl_array_get_dimension_ptr()
388 ZVAL_DEREF(offset); in spl_array_get_dimension_ptr()
414 if (!offset) { in spl_array_read_dimension_ex()
416 offset = &tmp; in spl_array_read_dimension_ex()
460 if (!offset) { in spl_array_write_dimension_ex()
462 offset = &tmp; in spl_array_write_dimension_ex()
467 zval_ptr_dtor(offset); in spl_array_write_dimension_ex()
480 if (!offset) { in spl_array_write_dimension_ex()
515 ZVAL_DEREF(offset); in spl_array_write_dimension_ex()
601 ZVAL_DEREF(offset); in spl_array_unset_dimension_ex()
[all …]
/PHP-7.2/ext/spl/internal/
H A Dseekableiterator.inc19 * to offset.
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 …]
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 …]
/PHP-7.2/ext/sockets/
H A Dconversions.c130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
132 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
133 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
831 size_t *offset, in from_zval_write_control() argument
886 space_left = *control_len - *offset; in from_zval_write_control()
887 assert(*control_len >= *offset); in from_zval_write_control()
892 memset((char *)*control_buf + *offset, '\0', *control_len - *offset); in from_zval_write_control()
896 cmsghdr = (struct cmsghdr*)(((char*)*control_buf) + *offset); in from_zval_write_control()
904 *offset += req_space; in from_zval_write_control()
/PHP-7.2/ext/soap/tests/bugs/
H A Dbug37083.phpt18 …"urn:java:de.pangaea.metadataportal.search.SearchService"><offset xsi:type="xsd:int">0</offset><qu…
/PHP-7.2/ext/snmp/
H A Dsnmp.c359 int offset; member
699 objid_query->offset = objid_query->count; in php_snmp_internal()
738 …for (count = 0; objid_query->offset < objid_query->count && count < objid_query->step; objid_query… in php_snmp_internal()
740 …->offset].name, objid_query->vars[objid_query->offset].name_length, objid_query->vars[objid_query-… in php_snmp_internal()
741 …d(buf, sizeof(buf), objid_query->vars[objid_query->offset].name, objid_query->vars[objid_query->of… in php_snmp_internal()
749 …p_add_null_var(pdu, objid_query->vars[objid_query->offset].name, objid_query->vars[objid_query->of… in php_snmp_internal()
796 objid_query->offset = 0; in php_snmp_internal()
877 …objid_query->offset = ((objid_query->offset > objid_query->step) ? (objid_query->offset - objid_qu… in php_snmp_internal()
1061 for (objid_query->offset = 0; objid_query->offset < objid_query->count; objid_query->offset++) { in php_snmp_parse_oid()
1063 …id_query->vars[objid_query->offset].oid, objid_query->vars[objid_query->offset].name, &(objid_quer… in php_snmp_parse_oid()
[all …]
/PHP-7.2/ext/simplexml/tests/
H A D030.phpt2 SimpleXML: isset and unset by offset
/PHP-7.2/ext/simplexml/
H A Dsimplexml.c128 static xmlNodePtr sxe_get_element_by_offset(php_sxe_object *sxe, zend_long offset, xmlNodePtr node,… in sxe_get_element_by_offset() argument
133 if (offset == 0) { in sxe_get_element_by_offset()
142 while (node && nodendx <= offset) { in sxe_get_element_by_offset()
147 if (nodendx == offset) { in sxe_get_element_by_offset()
378 static zval *sxe_dimension_read(zval *object, zval *offset, int type, zval *rv) in sxe_dimension_read() argument
380 return sxe_prop_dim_read(object, offset, 0, 1, type, rv); in sxe_dimension_read()
676 static void sxe_dimension_write(zval *object, zval *offset, zval *value) in sxe_dimension_write() argument
678 sxe_prop_dim_write(object, offset, value, 0, 1, NULL); in sxe_dimension_write()
952 static void sxe_dimension_delete(zval *object, zval *offset) in sxe_dimension_delete() argument
954 sxe_prop_dim_delete(object, offset, 0, 1); in sxe_dimension_delete()
[all …]
/PHP-7.2/ext/shmop/
H A DREADME35 start - offset from which to start reading
40 int shmop_write(int shmid, string data, int offset)
44 offset - offset in shm to write from
H A Dshmop.c73 ZEND_ARG_INFO(0, offset)
309 zend_long offset; in PHP_FUNCTION() local
313 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rSl", &shmid, &data, &offset) == FAILURE) { in PHP_FUNCTION()
326 if (offset < 0 || offset > shmop->size) { in PHP_FUNCTION()
331 …e = ((zend_long)ZSTR_LEN(data) < shmop->size - offset) ? (zend_long)ZSTR_LEN(data) : shmop->size -… in PHP_FUNCTION()
332 memcpy(shmop->addr + offset, ZSTR_VAL(data), writesize); in PHP_FUNCTION()
/PHP-7.2/ext/shmop/tests/
H A D002.phpt54 // warning outputs: offset out of range
102 Warning: shmop_write(): offset out of range in %s on line %d

Completed in 208 milliseconds

12345678910>>...31